Skip to content

Commit b9f4333

Browse files
committed
Add new function in math namspace in Python 3.12
1 parent f791297 commit b9f4333

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
@@ -177,6 +177,11 @@ def test_names_in_base_namspace():
177177
for name in ['cbrt', 'exp2']:
178178
api_name_set.add(name)
179179

180+
# Python 3.12 adds one more new math function.
181+
if python_version.major == 3 and python_version.minor >= 12:
182+
for name in ['sumprod']:
183+
api_name_set.add(name)
184+
180185
print(sorted(api_name_set - current_names))
181186

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

0 commit comments

Comments
 (0)