diff options
-rw-r--r-- | test/test_argparse.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_argparse.py b/test/test_argparse.py index 8d3e97c..f9e0f24 100644 --- a/test/test_argparse.py +++ b/test/test_argparse.py @@ -4086,8 +4086,8 @@ class TestNamespace(TestCase): class TestEncoding(TestCase): def _test_module_encoding(self, path): - if path.endswith('.pyc'): - path = path[:-1] + path, _ = os.path.splitext(path) + path += ".py" codecs.open(path, 'r', 'utf8').read() def test_argparse_module_encoding(self): |