diff options
author | Guido van Rossum <guido@dropbox.com> | 2016-08-15 16:12:52 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@dropbox.com> | 2016-08-15 16:12:52 (GMT) |
commit | 0a891d70ded5fa8b1e6491529a3b531f521b5ae1 (patch) | |
tree | e26a1c826888bbd3c40b7775406062ab1b32cca5 /Lib/test/test_math.py | |
parent | 6349612a8e5d5fcb3405e59242b6a2df3127585a (diff) | |
download | cpython-0a891d70ded5fa8b1e6491529a3b531f521b5ae1.zip cpython-0a891d70ded5fa8b1e6491529a3b531f521b5ae1.tar.gz cpython-0a891d70ded5fa8b1e6491529a3b531f521b5ae1.tar.bz2 |
Issue #12345: Add mathemathcal constant tau to math and cmath.
Patch by Lisa Roach. See also PEP 628.
Diffstat (limited to 'Lib/test/test_math.py')
-rw-r--r-- | Lib/test/test_math.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index 605adb5..48e8007 100644 --- a/Lib/test/test_math.py +++ b/Lib/test/test_math.py @@ -196,6 +196,7 @@ class MathTests(unittest.TestCase): def testConstants(self): self.ftest('pi', math.pi, 3.1415926) self.ftest('e', math.e, 2.7182818) + self.assertEqual(math.tau, 2*math.pi) def testAcos(self): self.assertRaises(TypeError, math.acos) |