diff options
| author | Cody Logan <clpo13@gmail.com> | 2020-09-02 16:03:48 -0700 |
|---|---|---|
| committer | Cody Logan <clpo13@gmail.com> | 2020-09-02 16:03:48 -0700 |
| commit | 20878f264711caa8ca3ad68c2ce57e2f91a9c508 (patch) | |
| tree | ea62d77b2f88d590dbb8fd6cb8414d714c1e28a5 /test | |
| parent | 560a652e4f27cfc4c17a7279c788c5820a1a112d (diff) | |
| download | wikiget-20878f264711caa8ca3ad68c2ce57e2f91a9c508.tar.gz wikiget-20878f264711caa8ca3ad68c2ce57e2f91a9c508.zip | |
Fix a testing error in Python 3.5
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_validations.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_validations.py b/test/test_validations.py index aecee50..f2d2611 100644 --- a/test/test_validations.py +++ b/test/test_validations.py @@ -88,4 +88,6 @@ def test_verify_hash(tmp_path): tmp_file = tmp_path / file_name tmp_file.write_text(file_contents) - assert verify_hash(tmp_file) == file_sha1 + # Convert tmp_file from PosixPath to string so this test works with + # Python 3.5 (see https://stackoverflow.com/a/42694113). + assert verify_hash(str(tmp_file)) == file_sha1 |
