[Python-checkins] cpython (2.7): Silence deprecation warning in test_unittest for 'None > 1'.
terry.reedy
python-checkins at python.org
Sun Sep 1 02:37:40 CEST 2013
http://hg.python.org/cpython/rev/7b9b85505db9
changeset: 85483:7b9b85505db9
branch: 2.7
parent: 85476:4179e2312089
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Sat Aug 31 20:37:21 2013 -0400
summary:
Silence deprecation warning in test_unittest for 'None > 1'.
This is the same change that was made in 3.x when this became an error.
files:
Lib/unittest/test/test_runner.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/unittest/test/test_runner.py b/Lib/unittest/test/test_runner.py
--- a/Lib/unittest/test/test_runner.py
+++ b/Lib/unittest/test/test_runner.py
@@ -159,7 +159,7 @@
# 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):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list