From c7afd73dc16978bf601a59130cb548d423f97c94 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 18 Jan 2021 11:16:08 +0100 Subject: [PATCH] fix tests on python 3.8 --- .github/workflows/main.yml | 2 +- test/test_snapshot.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0929016d..be81050e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,7 +59,7 @@ jobs: env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} - TWINE_REPOSITORY: testpypi + TWINE_REPOSITORY: ${{ secrets.TWINE_REPOSITORY }} steps: - uses: actions/checkout@v1 - uses: actions/setup-python@v2 diff --git a/test/test_snapshot.py b/test/test_snapshot.py index 2d16bd49..58ae3591 100644 --- a/test/test_snapshot.py +++ b/test/test_snapshot.py @@ -29,7 +29,7 @@ def make_repr_snapshot(module: Union[str, Path]) -> str: @pytest.mark.parametrize("module", snapshots) def test_html_snapshots(module: Path): - if sys.version_info < (3, 9) and module.name in ("demo_long.py", "demo_eager.py"): + if sys.version_info < (3, 9) and module.name in ("demo.py", "demo_long.py", "demo_eager.py"): pytest.skip("minor rendering differences on Python 3.8") expected = module.with_suffix(".html").read_text("utf8") actual = make_html_snapshot(module) @@ -38,7 +38,7 @@ def test_html_snapshots(module: Path): @pytest.mark.parametrize("module", snapshots) def test_repr_snapshots(module: Path): - if sys.version_info < (3, 9) and module.name in ("demo_long.py", "demo_eager.py"): + if sys.version_info < (3, 9) and module.name in ("demo.py", "demo_long.py", "demo_eager.py"): pytest.skip("minor rendering differences on Python 3.8") expected = module.with_suffix(".txt").read_text("utf8") actual = make_repr_snapshot(module)