Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ddcc1af

Browse files
Remove appending package path to test file (#119)
This declaration is no longer necessary.
1 parent f7e8e5a commit ddcc1af

3 files changed

Lines changed: 0 additions & 16 deletions

File tree

nrrd/tests/test_formatting.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
import os
2-
import sys
3-
41
import numpy as np
52

63
import nrrd
74
from nrrd.tests.util import *
85

9-
# Required specifically in each module so that searches happen at the parent directory for importing modules
10-
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
11-
126

137
class TestFieldFormatting(unittest.TestCase):
148
def setUp(self):

nrrd/tests/test_parsing.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
import os
2-
import sys
3-
41
import numpy as np
52

63
import nrrd
74
from nrrd.tests.util import *
85

9-
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
10-
116

127
class TestFieldParsing(unittest.TestCase):
138
def setUp(self):

nrrd/tests/test_reading.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
import os
2-
import sys
3-
41
import numpy as np
52

63
import nrrd
74
from nrrd.tests.util import *
85

9-
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
10-
116

127
class TestReadingFunctions:
138
def setUp(self):

0 commit comments

Comments
 (0)