forked from openlp/openlp
Support running ./setup.py test
setuptools can run tests. Use nose2 to run the tests. If it is not installed on your system, it is downloaded and temporarily used.
This commit is contained in:
parent
6edd85146d
commit
9f6b03047b
@ -57,8 +57,7 @@ class Registry(object):
|
||||
registry.functions_list = {}
|
||||
registry.working_flags = {}
|
||||
# Allow the tests to remove Registry entries but not the live system
|
||||
registry.running_under_test = 'nose' in sys.argv[0]
|
||||
registry.running_under_test = 'pytest' in sys.argv[0]
|
||||
registry.running_under_test = 'nose' in sys.argv[0] or 'pytest' in sys.argv[0]
|
||||
registry.initialising = True
|
||||
return registry
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user