]> granicus.if.org Git - python/commitdiff
Fix newly merged test for p3ykness.
authorThomas Wouters <thomas@python.org>
Fri, 21 Apr 2006 11:36:13 +0000 (11:36 +0000)
committerThomas Wouters <thomas@python.org>
Fri, 21 Apr 2006 11:36:13 +0000 (11:36 +0000)
Lib/test/test_getargs2.py

index 748ad44b7cdd81e1e44a82e7682e42060f9dd454..8864e8e8a3c3d6b1805f2a8013fd0e73bf03d128 100644 (file)
@@ -186,7 +186,7 @@ class Signed_TestCase(unittest.TestCase):
         from _testcapi import getargs_n
         # n returns 'Py_ssize_t', and does range checking
         # (PY_SSIZE_T_MIN ... PY_SSIZE_T_MAX)
-        self.failUnlessEqual(3, getargs_n(3.14))
+        self.assertRaises(TypeError, getargs_n, 3.14)
         self.failUnlessEqual(99, getargs_n(Long()))
         self.failUnlessEqual(99, getargs_n(Int()))