Skip to content

Commit

Permalink
fix tests on python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed Jan 18, 2021
1 parent c3c22ff commit c7afd73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/test_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit c7afd73

Please sign in to comment.