diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-24 08:14:36 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-24 08:14:36 +0000 |
commit | 576f5cc382383d5ee1cdbd9f899c488c4d9a1e20 (patch) | |
tree | 93596584dd515332556def7b1c2f305c7677624c /Lib/test/test_class.py | |
parent | 7c04530d3cc484afab527acf34fda2ed211936cc (diff) | |
download | cpython-576f5cc382383d5ee1cdbd9f899c488c4d9a1e20.tar.gz |
Get rid of remnants of integer division
Diffstat (limited to 'Lib/test/test_class.py')
-rw-r--r-- | Lib/test/test_class.py | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/Lib/test/test_class.py b/Lib/test/test_class.py index 92c220ef6f..b8b4cab96d 100644 --- a/Lib/test/test_class.py +++ b/Lib/test/test_class.py @@ -11,8 +11,8 @@ testmeths = [ "rsub", "mul", "rmul", - "div", - "rdiv", + "truediv", + "rtruediv", "mod", "rmod", "divmod", @@ -134,16 +134,8 @@ testme - 1 testme * 1 1 * testme -if 1/2 == 0: - testme / 1 - 1 / testme -else: - # True division is in effect, so "/" doesn't map to __div__ etc; but - # the canned expected-output file requires that __div__ etc get called. - testme.__coerce__(1) - testme.__div__(1) - testme.__coerce__(1) - testme.__rdiv__(1) +testme / 1 +1 / testme testme % 1 1 % testme |