Skip to content

Commit d4423fb

Browse files
committed
Add new math functions in Python 3.11
1 parent 89e6a23 commit d4423fb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vpython/test/test_namespace.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ def test_names_in_base_namspace():
173173
for name in ['lcm', 'ulp', 'nextafter']:
174174
api_name_set.add(name)
175175

176+
# Python 3.11 adds two more new math functions.
177+
if python_version.major == 3 and python_version.minor >= 11:
178+
for name in ['cbrt', 'exp2']:
179+
api_name_set.add(name)
180+
176181
print(sorted(api_name_set - current_names))
177182

178183
# We may have added new names, so start with this weaker test

0 commit comments

Comments
 (0)