summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsteven.bethard <devnull@localhost>2009-09-16 17:07:04 +0000
committersteven.bethard <devnull@localhost>2009-09-16 17:07:04 +0000
commit71e0438ebf2c5cd28294ad6500cd8e7e57bc615c (patch)
treef4fd841d08822e7617697a3a4ca70d19d46578f3
parent127d3dc9fbd64570110c320642ac8c90952a3b22 (diff)
downloadargparse-71e0438ebf2c5cd28294ad6500cd8e7e57bc615c.tar.gz
Fix encoding test.
-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):