Skip to content

Commit c74ec04

Browse files
committed
Fix test error
1 parent acae80d commit c74ec04

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

gudpy/test/test_gudpy_io.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -759,10 +759,7 @@ def testLoadGudrunFile(self):
759759
def testWriteGudrunFile(self):
760760
self.g.write_out(overwrite=True)
761761
with open(
762-
os.path.join(
763-
self.g.instrument.GudrunInputFileDir,
764-
self.g.outpath
765-
),
762+
self.g.path,
766763
encoding="utf-8"
767764
) as f:
768765
outlines = "\n".join(f.readlines()[:-5])
@@ -851,10 +848,7 @@ def testRewriteGudrunFile(self):
851848
"copyGF.txt"
852849
)
853850
g1 = GudrunFile(
854-
os.path.join(
855-
self.g.instrument.GudrunInputFileDir,
856-
self.g.outpath
857-
),
851+
self.g.path,
858852
format=Format.TXT
859853
)
860854
g1.instrument.GudrunInputFileDir = self.g.instrument.GudrunInputFileDir

0 commit comments

Comments
 (0)