From 843de4ea235e7eee3ff24a39a2f8b14da9ef0db0 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 31 Jan 2021 07:16:56 -0500 Subject: refactor: unittest2pytest -w tests One step of moving to pure pytest tests. --- tests/test_python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_python.py') diff --git a/tests/test_python.py b/tests/test_python.py index 441ef499..0175f5af 100644 --- a/tests/test_python.py +++ b/tests/test_python.py @@ -28,7 +28,7 @@ class GetZipBytesTest(CoverageTest): filename = filename.replace("/", os.sep) zip_data = get_zip_bytes(filename) zip_text = zip_data.decode(encoding) - self.assertIn('All OK', zip_text) + assert 'All OK' in zip_text # Run the code to see that we really got it encoded properly. __import__("encoded_"+encoding) -- cgit v1.2.1