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