diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 88e4f626185..2c9d9bff693 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -568,7 +568,7 @@ def test_fchown(self): 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):