We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 960d9bf commit f01ca74Copy full SHA for f01ca74
vpython/test/test_namespace.py
@@ -1,3 +1,4 @@
1
+import sys
2
import vpython
3
4
API_NAMES = [
@@ -145,6 +146,14 @@ def test_names_in_base_namspace():
145
146
current_names = set(name for name in dir(vpython)
147
if not name.startswith('_'))
148
api_name_set = set(API_NAMES)
149
+
150
+ python_version = sys.version_info
151
152
+ # Python 3.7 added remainder to math, so add it to what we
153
+ # expect to see.
154
+ if python_version.major == 3 and python_version.minor >= 7:
155
+ api_name_set.add('remainder')
156
157
print(sorted(api_name_set - current_names))
158
159
# We may have added new names, so start with this weaker test
0 commit comments