Make codebase compatible with Python 3.7

This commit is contained in:
Andras Schmelczer 2022-07-29 13:05:05 +02:00
parent 2ad06e8b38
commit f8db199996
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E
11 changed files with 125 additions and 51 deletions

View file

@ -77,7 +77,11 @@ def test_empty() -> None:
def test_save() -> None:
path = Path("test.svg")
path.unlink(missing_ok=True)
try:
path.unlink()
except FileNotFoundError:
# missing_ok only exists >= Python 3.8
pass
evaluate_ranking(
["a", "a", "b", "b", "c", "d", "d", "d"],