Skip to content

Commit e293228

Browse files
committed
Correcting test, when math.tau was added since Python 3.6.
1 parent 3170316 commit e293228

File tree

1 file changed

+3
-1
lines changed
  • graalpython/com.oracle.graal.python.test/src/tests

1 file changed

+3
-1
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_math.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ def testConstants(self):
106106
# Ref: Abramowitz & Stegun (Dover, 1965)
107107
self.ftest('pi', math.pi, 3.141592653589793238462643)
108108
self.ftest('e', math.e, 2.718281828459045235360287)
109-
self.assertEqual(math.tau, 2*math.pi)
109+
if (sys.version_info.major >= 3 and sys.version_info.minor >= 6):
110+
# math.tau since 3.6
111+
self.assertEqual(math.tau, 2*math.pi)
110112

111113
def test_ceil_basic(self):
112114
self.assertEqual(math.ceil(10), 10)

0 commit comments

Comments
 (0)