diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2023-01-03 06:51:59 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-01-03 06:51:59 -0500 |
commit | 9d2e1b055cf7ed02eba725b86d476c24a718178d (patch) | |
tree | 439fdff14ddadb20022dbf535d7aa627d8dd710e /tests/test_python.py | |
parent | c3ee30c1cfd133f1e36a4a8992b531a0dc7ec5a9 (diff) | |
download | python-coveragepy-git-9d2e1b055cf7ed02eba725b86d476c24a718178d.tar.gz |
mypy: test_concurrency.py, test_python.py
Diffstat (limited to 'tests/test_python.py')
-rw-r--r-- | tests/test_python.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_python.py b/tests/test_python.py index c8c58f4e..14dbebef 100644 --- a/tests/test_python.py +++ b/tests/test_python.py @@ -24,13 +24,14 @@ class GetZipBytesTest(CoverageTest): "encoding", ["utf-8", "gb2312", "hebrew", "shift_jis", "cp1252"], ) - def test_get_encoded_zip_files(self, encoding): + def test_get_encoded_zip_files(self, encoding: str) -> None: # See igor.py, do_zipmods, for the text of these files. zip_file = "tests/zipmods.zip" sys.path.append(zip_file) # So we can import the files. filename = zip_file + "/encoded_" + encoding + ".py" filename = os_sep(filename) zip_data = get_zip_bytes(filename) + assert zip_data is not None zip_text = zip_data.decode(encoding) assert 'All OK' in zip_text # Run the code to see that we really got it encoded properly. |