From cce2f217d403dff7344fcc1c381e36dfd075a961 Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Thu, 15 Jan 2009 19:32:23 +0000 Subject: Issue 4910, patch 2 of (probably) 3: pave the way for renaming of nb_long: remove last remaining use of nb_long (in the struct module) from the core, set nb_long slots on all builtin and extension types to 0, and remove uses of __long__ in test_complex and test_binop. Reviewed by Benjamin Peterson. --- Lib/test/test_cmath.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Lib/test/test_cmath.py') diff --git a/Lib/test/test_cmath.py b/Lib/test/test_cmath.py index 3c34fecd904..17cb56689fb 100755 --- a/Lib/test/test_cmath.py +++ b/Lib/test/test_cmath.py @@ -182,11 +182,9 @@ class CMathTests(unittest.TestCase): pass class MyInt(object): def __int__(self): return 2 - def __long__(self): return 2 def __index__(self): return 2 class MyIntOS: def __int__(self): return 2 - def __long__(self): return 2 def __index__(self): return 2 # other possible combinations of __float__ and __complex__ @@ -219,7 +217,7 @@ class CMathTests(unittest.TestCase): self.assertEqual(f(JustFloatOS()), f(flt_arg)) # TypeError should be raised for classes not providing # either __complex__ or __float__, even if they provide - # __int__, __long__ or __index__. An old-style class + # __int__ or __index__. An old-style class # currently raises AttributeError instead of a TypeError; # this could be considered a bug. self.assertRaises(TypeError, f, NeitherComplexNorFloat()) -- cgit v1.2.3