forked from sympy/sympy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_setup.py
More file actions
28 lines (18 loc) · 689 Bytes
/
test_setup.py
File metadata and controls
28 lines (18 loc) · 689 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""
Test that the installed modules in setup.py are up-to-date.
If this test fails, run
python bin/generate_test_list.py
and
python bin/generate_module_list.py
to generate the up-to-date test and modules list to put in setup.py.
"""
import generate_test_list
import generate_module_list
from get_sympy import path_hack
path_hack()
import setup
module_list = generate_module_list.generate_module_list()
test_list = generate_test_list.generate_test_list()
assert setup.modules == module_list, set(setup.modules).symmetric_difference(set(module_list))
assert setup.tests == test_list, set(setup.tests).symmetric_difference(set(test_list))
print("setup.py modules and tests are OK")