From ddcc1af0ab631734b80752a16cfd4fd3769a0b4f Mon Sep 17 00:00:00 2001 From: Addison Elliott Date: Sun, 3 Jul 2022 07:39:25 -0500 Subject: [PATCH] Remove appending package path to test file (#119) This declaration is no longer necessary. --- nrrd/tests/test_formatting.py | 6 ------ nrrd/tests/test_parsing.py | 5 ----- nrrd/tests/test_reading.py | 5 ----- 3 files changed, 16 deletions(-) diff --git a/nrrd/tests/test_formatting.py b/nrrd/tests/test_formatting.py index df6d615..74d8124 100644 --- a/nrrd/tests/test_formatting.py +++ b/nrrd/tests/test_formatting.py @@ -1,14 +1,8 @@ -import os -import sys - import numpy as np import nrrd from nrrd.tests.util import * -# Required specifically in each module so that searches happen at the parent directory for importing modules -sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))) - class TestFieldFormatting(unittest.TestCase): def setUp(self): diff --git a/nrrd/tests/test_parsing.py b/nrrd/tests/test_parsing.py index 9d5904f..e6a7900 100644 --- a/nrrd/tests/test_parsing.py +++ b/nrrd/tests/test_parsing.py @@ -1,13 +1,8 @@ -import os -import sys - import numpy as np import nrrd from nrrd.tests.util import * -sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))) - class TestFieldParsing(unittest.TestCase): def setUp(self): diff --git a/nrrd/tests/test_reading.py b/nrrd/tests/test_reading.py index d3a39e5..29efce0 100644 --- a/nrrd/tests/test_reading.py +++ b/nrrd/tests/test_reading.py @@ -1,13 +1,8 @@ -import os -import sys - import numpy as np import nrrd from nrrd.tests.util import * -sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))) - class TestReadingFunctions: def setUp(self):