[Python-checkins] cpython: Adjust test names to be more descriptive instead of depending on capitalization.

brian.curtin python-checkins at python.org
Tue Mar 15 15:59:42 CET 2011


http://hg.python.org/cpython/rev/d1acf761a911
changeset:   68497:d1acf761a911
user:        briancurtin <brian.curtin at gmail.com>
date:        Tue Mar 15 10:59:36 2011 -0400
summary:
  Adjust test names to be more descriptive instead of depending on capitalization.

files:
  Lib/test/test_fileinput.py

diff --git a/Lib/test/test_fileinput.py b/Lib/test/test_fileinput.py
--- a/Lib/test/test_fileinput.py
+++ b/Lib/test/test_fileinput.py
@@ -754,7 +754,7 @@
     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 @@
         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 @@
     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):

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list