diff --git a/test/test_cdl.py b/test/test_cdl.py index 895f572fa..a04693cad 100644 --- a/test/test_cdl.py +++ b/test/test_cdl.py @@ -55,7 +55,7 @@ def setUp(self): def test_tocdl(self): # treated as unsigned integers. - with netCDF4.Dataset(ubyte_filename) as f: + with netCDF4.Dataset(os.path.basename(ubyte_filename)) as f: assert f.tocdl() == test_ncdump assert f.tocdl(data=True) == test_ncdump2