You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
222 B

4 years ago
  1. import sys
  2. if __name__ == '__main__':
  3. import pytest
  4. sys.exit(pytest.main())
  5. else:
  6. import sys, pytest
  7. sys.modules['py.test'] = pytest
  8. # for more API entry points see the 'tests' definition
  9. # in __init__.py