diff options
author | briancurtin <brian.curtin@gmail.com> | 2011-03-15 14:59:36 (GMT) |
---|---|---|
committer | briancurtin <brian.curtin@gmail.com> | 2011-03-15 14:59:36 (GMT) |
commit | 5eb3591a41aa7c871f99d8bc10c09fd1a4d67479 (patch) | |
tree | fe75fa76d1fb2665257dd19c8449556af162aee4 /Lib/test/test_fileinput.py | |
parent | eb46288a8d238aaa7c2218d5fbbc41e5620b48d5 (diff) | |
download | cpython-5eb3591a41aa7c871f99d8bc10c09fd1a4d67479.zip cpython-5eb3591a41aa7c871f99d8bc10c09fd1a4d67479.tar.gz cpython-5eb3591a41aa7c871f99d8bc10c09fd1a4d67479.tar.bz2 |
Adjust test names to be more descriptive instead of depending on capitalization.
Diffstat (limited to 'Lib/test/test_fileinput.py')
-rw-r--r-- | Lib/test/test_fileinput.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_fileinput.py b/Lib/test/test_fileinput.py index 782b73a..7afb88c 100644 --- a/Lib/test/test_fileinput.py +++ b/Lib/test/test_fileinput.py @@ -754,7 +754,7 @@ class Test_hook_compressed(unittest.TestCase): def test_no_ext(self): self.do_test_use_builtin_open("abcd", 2) - def test_gz_ext(self): + def test_gz_ext_fake(self): original_open = gzip.open gzip.open = self.fake_open try: @@ -765,7 +765,7 @@ class Test_hook_compressed(unittest.TestCase): self.assertEqual(self.fake_open.invocation_count, 1) self.assertEqual(self.fake_open.last_invocation, (("test.gz", 3), {})) - def test_bz2_ext(self): + def test_bz2_ext_fake(self): original_open = bz2.BZ2File bz2.BZ2File = self.fake_open try: @@ -779,10 +779,10 @@ class Test_hook_compressed(unittest.TestCase): def test_blah_ext(self): self.do_test_use_builtin_open("abcd.blah", 5) - def test_Gz_ext(self): + def test_gz_ext_builtin(self): self.do_test_use_builtin_open("abcd.Gz", 6) - def test_Bz2_ext(self): + def test_bz2_ext_builtin(self): self.do_test_use_builtin_open("abcd.Bz2", 7) def do_test_use_builtin_open(self, filename, mode): |