diff options
| author | Rohit Goswami <rog32@hi.is> | 2021-11-28 06:06:28 +0000 |
|---|---|---|
| committer | Rohit Goswami <rog32@hi.is> | 2021-12-03 03:15:36 +0000 |
| commit | 3c92ba281502393283caffe995c1a0662f2c9f84 (patch) | |
| tree | 9e39a877980e00cafd995459d47383edaf78b13d /numpy/f2py/tests/test_mixed.py | |
| parent | 0e10696f55576441fd820279d9ec10cd9f2a4c5d (diff) | |
| download | numpy-3c92ba281502393283caffe995c1a0662f2c9f84.tar.gz | |
TST,STY: Clean up F2PY tests for pathlib.Path
Diffstat (limited to 'numpy/f2py/tests/test_mixed.py')
| -rw-r--r-- | numpy/f2py/tests/test_mixed.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/numpy/f2py/tests/test_mixed.py b/numpy/f2py/tests/test_mixed.py index 04266ca5b..266e9c0d9 100644 --- a/numpy/f2py/tests/test_mixed.py +++ b/numpy/f2py/tests/test_mixed.py @@ -6,14 +6,11 @@ from numpy.testing import assert_, assert_equal, IS_PYPY from . import util -def _path(*a): - return os.path.join(*((os.path.dirname(__file__),) + a)) - class TestMixed(util.F2PyTest): - sources = [_path('src', 'mixed', 'foo.f'), - _path('src', 'mixed', 'foo_fixed.f90'), - _path('src', 'mixed', 'foo_free.f90')] + sources = [util.getpath('tests', 'src', 'mixed', 'foo.f'), + util.getpath('tests', 'src', 'mixed', 'foo_fixed.f90'), + util.getpath('tests', 'src', 'mixed', 'foo_free.f90')] def test_all(self): assert_(self.module.bar11() == 11) |
