summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/test_argparse.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/test_argparse.py b/test/test_argparse.py
index 263baea..c7c04d8 100644
--- a/test/test_argparse.py
+++ b/test/test_argparse.py
@@ -3918,9 +3918,7 @@ class TestEncoding(TestCase):
def _test_module_encoding(self, path):
if path.endswith('.pyc'):
- return path[:-1]
- else:
- return path
+ path[:-1]
codecs.open(path, 'r', 'utf8').read()
def test_argparse_module_encoding(self):