test.py 222 B

12345678910
  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