]> granicus.if.org Git - python/commitdiff
test_newobj_generic(): Use the global protocols vector instead of a
authorTim Peters <tim.peters@gmail.com>
Mon, 3 Feb 2003 22:28:41 +0000 (22:28 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 3 Feb 2003 22:28:41 +0000 (22:28 +0000)
hardcoded list.

Lib/test/pickletester.py

index 6c621e5386f62889bc31c3b34d9c1ebaac395d69..0d2441adc5ff08fc4a7bb3f533e2ff08d7a45e33 100644 (file)
@@ -570,7 +570,7 @@ class AbstractPickleTests(unittest.TestCase):
         self.assertEqual(x.__dict__, y.__dict__)
 
     def test_newobj_generic(self):
-        for proto in [0, 1, 2]:
+        for proto in protocols:
             for C in myclasses:
                 B = C.__base__
                 x = C(C.sample)