Skip to content

Commit 34d99e4

Browse files
bhazeltonjsdillon
authored andcommitted
Fix a test error on my machine from writing to a non-existent directory
1 parent 580943d commit 34d99e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hera_cal/tests/test_io.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1268,10 +1268,10 @@ def test_write_vis(self):
12681268
shutil.rmtree('ex.uv')
12691269

12701270
@pytest.mark.filterwarnings("ignore:writing default values for restfreq")
1271-
def test_update_vis(self):
1271+
def test_update_vis(self, tmpdir):
12721272
# load in cal
12731273
fname = os.path.join(DATA_PATH, "zen.2458043.12552.xx.HH.uvORA")
1274-
outname = os.path.join(DATA_PATH, "test_output/zen.2458043.12552.xx.HH.modified.uvORA")
1274+
outname = os.path.join(tmpdir, "zen.2458043.12552.xx.HH.modified.uvORA")
12751275
uvd = UVData()
12761276
uvd.read_miriad(fname)
12771277
data, flags, antpos, ants, freqs, times, lsts, pols = io.load_vis(fname, return_meta=True)

0 commit comments

Comments
 (0)