Skip to content

Commit cffc2e9

Browse files
committed
Add new python math names
1 parent cf2086e commit cffc2e9

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
@@ -163,6 +163,11 @@ def test_names_in_base_namspace():
163163
for name in ['dist', 'comb', 'prod', 'perm', 'isqrt']:
164164
api_name_set.add(name)
165165

166+
# Python 3.9 adds three more new math functions.
167+
if python_version.major == 3 and python_version.minor >= 9:
168+
for name in ['lcm', 'ulp', 'nextafter']:
169+
api_name_set.add(name)
170+
166171
print(sorted(api_name_set - current_names))
167172

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

0 commit comments

Comments
 (0)