From 5013bd9438be9b2faa8a70c72ef57bae1fe4a031 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Mon, 3 Feb 2003 22:28:41 +0000 Subject: [PATCH] test_newobj_generic(): Use the global protocols vector instead of a hardcoded list. --- Lib/test/pickletester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py index 6c621e5386..0d2441adc5 100644 --- a/Lib/test/pickletester.py +++ b/Lib/test/pickletester.py @@ -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) -- 2.50.1