]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix bad variable name in r73846.
authorAlexandre Vassalotti <alexandre@peadrop.com>
Sun, 5 Jul 2009 04:25:46 +0000 (04:25 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Sun, 5 Jul 2009 04:25:46 +0000 (04:25 +0000)
Lib/test/test_py3kwarn.py

index a636a49c889e5ff27aa4ab7cfb6888ff0fa8c2eb..c7fdd6ba56cade4ccc4037864f49d26ae6faad09 100644 (file)
@@ -282,8 +282,8 @@ class TestPy3KWarnings(unittest.TestCase):
     def test_operator(self):
         from operator import isCallable, sequenceIncludes
 
-        expected_ = ("operator.isCallable() is not supported in 3.x. "
-                     "Use hasattr(obj, '__call__').")
+        callable_warn = ("operator.isCallable() is not supported in 3.x. "
+                         "Use hasattr(obj, '__call__').")
         seq_warn = ("operator.sequenceIncludes() is not supported "
                     "in 3.x. Use operator.contains().")
         with check_warnings() as w: