From cb4d5e49276ef88e32ecaca893219955d56e0e84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A9n=C3=A9dikt=20Tran?= <10796600+picnixz@users.noreply.github.com> Date: Fri, 13 Dec 2024 16:17:44 +0100 Subject: [PATCH] fix tests --- Lib/test/test_dbm_gnu.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/test/test_dbm_gnu.py b/Lib/test/test_dbm_gnu.py index 5f2a4bbb079d3d..661b3da3eceb2d 100644 --- a/Lib/test/test_dbm_gnu.py +++ b/Lib/test/test_dbm_gnu.py @@ -213,8 +213,7 @@ def test_clear(self): ) def test_localized_error(self): with temp_dir() as d: - filename = os.path.join(os.fsencode(d), b'\xff') - create_empty_file(filename) + create_empty_file(os.path.join(d, TESTFN)) self.assertRaises(gdbm.error, gdbm.open, filename, 'r')