1071
1072
if sys.platform == 'win32':
1072
1073
raise tests.TestNotApplicable(
1073
1074
"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