Skip to content

Commit 4590992

Browse files
committed
Fix tests on Python 3.8
1 parent 3cf116d commit 4590992

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
@@ -158,6 +158,11 @@ def test_names_in_base_namspace():
158158
if python_version.major == 3 and python_version.minor >= 7:
159159
api_name_set.add('remainder')
160160

161+
# Python 3.8 added even more math functions.
162+
if python_version.major == 3 and python_version.minor >= 8:
163+
for name in ['dist', 'comb', 'prod', 'perm', 'isqrt']:
164+
api_name_set.add(name)
165+
161166
print(sorted(api_name_set - current_names))
162167

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

0 commit comments

Comments
 (0)