]> granicus.if.org Git - python/commitdiff
Silence deprecation warning in test_unittest for 'None > 1'.
authorTerry Jan Reedy <tjreedy@udel.edu>
Sun, 1 Sep 2013 00:37:21 +0000 (20:37 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Sun, 1 Sep 2013 00:37:21 +0000 (20:37 -0400)
This is the same change that was made in 3.x when this became an error.

Lib/unittest/test/test_runner.py

index d1cefae4c175d90afaa424fa665d71b693c1de50..3b661d3340814fac8da5b69d54523e61af5c765b 100644 (file)
@@ -159,7 +159,7 @@ class Test_TextTestRunner(unittest.TestCase):
 
         # This used to raise an exception due to TextTestResult not passing
         # on arguments in its __init__ super call
-        ATextResult(None, None, None)
+        ATextResult(None, None, 1)
 
 
     def testBufferAndFailfast(self):