From 87b1b4d8ecf258df0404188fe2379ad4fbd69fa4 Mon Sep 17 00:00:00 2001 From: shriwise Date: Mon, 10 Sep 2018 22:47:10 -0500 Subject: [PATCH] Attempting a new way of accessing local files for test. --- tests/unit_tests/cad/test_cad.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit_tests/cad/test_cad.py b/tests/unit_tests/cad/test_cad.py index 544e87380c..d73069297d 100644 --- a/tests/unit_tests/cad/test_cad.py +++ b/tests/unit_tests/cad/test_cad.py @@ -13,8 +13,8 @@ pytestmark = pytest.mark.skipif( def test_cad(): # make sure cwd is in the python system path d = os.path.abspath(os.path.dirname(__file__)) - print(d) - sys.path.append(d) - + # move here + os.chdir(d) + # run test assert not call(['openmc','-s','1'])