From 951ea5e6011235fb4c71e519a86cdd9f40ea3851 Mon Sep 17 00:00:00 2001 From: Eric Lundby Date: Fri, 17 Jan 2025 10:31:35 -0700 Subject: [PATCH] Fix test_tocdl to pass on Windows. --- test/test_cdl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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