1071
1071
if sys.platform == 'win32':
1072
1072
raise tests.TestNotApplicable(
1073
1073
"readdir IOError not tested on win32")
1074
1075
os.mkdir("test-unreadable")
1075
1076
os.chmod("test-unreadable", 0000)
1076
1077
# must chmod it back so that it can be removed