diff options
author | Matthew Sotoudeh <masotoudeh@ucdavis.edu> | 2020-08-28 14:09:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-28 14:09:53 -0700 |
commit | 4e60f32823ad1326da45f7d29abc96de1c3ac9f0 (patch) | |
tree | 38904429ab205a5a802af60dae5f40e06cb43b03 | |
parent | f99ab8738dced7257c97dc719457f50a601ed84c (diff) |
Remove unnecessary Numpy dependency (#7)
There was an unnecessary Numpy import hanging around, which caused problems when importing in projects that don't depend on Numpy. This removes it, and does a bit of additional pylinting.
-rw-r--r-- | pytest_helper.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pytest_helper.py b/pytest_helper.py index 591e793..235d4f0 100644 --- a/pytest_helper.py +++ b/pytest_helper.py @@ -1,17 +1,17 @@ """Helper methods for using Pytest within Bazel.""" +import os import sys -import numpy as np import pytest try: import coverage COVERAGE = True except ImportError: COVERAGE = False -import os if COVERAGE: - # We need to do this here, otherwise it won't catch method/class declarations. - # Also, helpers imports should be before all other local imports. + # We need to do this here, otherwise it won't catch method/class + # declarations. Also, helpers imports should be before all other local + # imports. cov_file = "%s/coverage.cov" % os.environ["TEST_UNDECLARED_OUTPUTS_DIR"] cov = coverage.Coverage(data_file=cov_file) cov.start() |