summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-12-20 20:23:01 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-12-20 20:23:01 (GMT)
commited284991e1f6174afd2600163d884055cda6328f (patch)
tree130a91f1bd5cbfe07d5d8c38dab14fc188a28977 /Lib
parent3e0bafef25940b3fe80f327b64c304c0bef83924 (diff)
downloadcpython-ed284991e1f6174afd2600163d884055cda6328f.zip
cpython-ed284991e1f6174afd2600163d884055cda6328f.tar.gz
cpython-ed284991e1f6174afd2600163d884055cda6328f.tar.bz2
Silence -3 warnings. Thanks Florent Xicluna.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_math.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py
index da687f0..293cdab 100644
--- a/Lib/test/test_math.py
+++ b/Lib/test/test_math.py
@@ -433,7 +433,8 @@ class MathTests(unittest.TestCase):
def testFrexp(self):
self.assertRaises(TypeError, math.frexp)
- def testfrexp(name, (mant, exp), (emant, eexp)):
+ def testfrexp(name, result, expected):
+ (mant, exp), (emant, eexp) = result, expected
if abs(mant-emant) > eps or exp != eexp:
self.fail('%s returned %r, expected %r'%\
(name, (mant, exp), (emant,eexp)))
@@ -618,7 +619,8 @@ class MathTests(unittest.TestCase):
def testModf(self):
self.assertRaises(TypeError, math.modf)
- def testmodf(name, (v1, v2), (e1, e2)):
+ def testmodf(name, result, expected):
+ (v1, v2), (e1, e2) = result, expected
if abs(v1-e1) > eps or abs(v2-e2):
self.fail('%s returned %r, expected %r'%\
(name, (v1,v2), (e1,e2)))