Skip to content
Snippets Groups Projects
Unverified Commit d7e95aeb authored by anarcat's avatar anarcat
Browse files

remove double pytest import

parent c6e7e1fd
No related branches found
No related tags found
No related merge requests found
......@@ -366,9 +366,7 @@ if __name__ == '__main__': # pragma: no cover
logging.basicConfig(format='%(message)s', level=args.log_level.upper())
if args.test:
logging.info('running test suite')
try:
import pytest
except ImportError:
if pytest is None:
logging.error('test suite requires pytest to run properly')
sys.exit(1)
shortname, _ = os.path.splitext(os.path.basename(__file__))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment