summaryrefslogtreecommitdiff
path: root/Lib/test/test_getargs2.py
diff options
context:
space:
mode:
authorTrent Nelson <trent.nelson@snakebite.org>2008-04-11 23:02:37 +0000
committerTrent Nelson <trent.nelson@snakebite.org>2008-04-11 23:02:37 +0000
commit7179220b57faca4606430b97847308b34f45f623 (patch)
tree8d50a92a88bb6569baae5fd557adbf80a7509615 /Lib/test/test_getargs2.py
parentdd21912cd01f60434cb2e91fabd466d94a630244 (diff)
downloadcpython-git-7179220b57faca4606430b97847308b34f45f623.tar.gz
Issue 2440: revert r62269 and r62279. These changes were made in an effort to fix test_args2.Signed_TestCase.test_n(), which was failing on Windows x64 on the following line: 'self.failUnlessEqual(99, getargs_n(Long()))'. Although the two commits *did* fix the test on Windows x64, it's become clear that it's the test that's incorrect, and the changes to PyNumber_Index() in particular were not warranted (and actually violate PEP 357). This commit will get us back to where we were at r62268, before I started butchering things.
Diffstat (limited to 'Lib/test/test_getargs2.py')
-rw-r--r--Lib/test/test_getargs2.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/test/test_getargs2.py b/Lib/test/test_getargs2.py
index d8f6309239..19183867f9 100644
--- a/Lib/test/test_getargs2.py
+++ b/Lib/test/test_getargs2.py
@@ -63,10 +63,6 @@ class Int:
def __int__(self):
return 99
-class InvalidLongAsString:
- def __int__(self):
- return 'foobar'
-
class Unsigned_TestCase(unittest.TestCase):
def test_b(self):
from _testcapi import getargs_b
@@ -203,7 +199,6 @@ class Signed_TestCase(unittest.TestCase):
self.failUnlessEqual(42, getargs_n(42))
self.assertRaises(OverflowError, getargs_n, VERY_LARGE)
- self.assertRaises(TypeError, getargs_n, InvalidLongAsString())
class LongLong_TestCase(unittest.TestCase):
def test_L(self):