diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 88e4f6261859..2c9d9bff693e 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -568,7 +568,7 @@ class TestInvalidFD(unittest.TestCase): def test_fpathconf(self): if hasattr(os, "fpathconf"): - self.assertRaises(OSError, os.fpathconf, 10, "PC_FILESIZEBITS") + self.assertRaises(OSError, os.fpathconf, 10, "PC_NAME_MAX") #this is a weird one, it raises IOError unlike the others def test_ftruncate(self):