mirror of
https://github.com/python/cpython.git
synced 2025-11-20 02:50:14 +00:00
Fix failure do to outlawing complex floordiv/mod.
This commit is contained in:
parent
ec0c508b0a
commit
4a7fd90d9c
1 changed files with 3 additions and 1 deletions
|
|
@ -442,7 +442,9 @@ def floats():
|
||||||
|
|
||||||
def complexes():
|
def complexes():
|
||||||
if verbose: print("Testing complex operations...")
|
if verbose: print("Testing complex operations...")
|
||||||
numops(100.0j, 3.0j, skip=['lt', 'le', 'gt', 'ge', 'int', 'long', 'float'])
|
numops(100.0j, 3.0j,
|
||||||
|
skip=['lt', 'le', 'gt', 'ge', 'int', 'long', 'float',
|
||||||
|
'divmod', 'mod'])
|
||||||
class Number(complex):
|
class Number(complex):
|
||||||
__slots__ = ['prec']
|
__slots__ = ['prec']
|
||||||
def __new__(cls, *args, **kwds):
|
def __new__(cls, *args, **kwds):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue