241 |
def supports_unusual_chars(): |
def supports_unusual_chars(): |
242 |
"""Test handling of several chars sometimes not supported""" |
"""Test handling of several chars sometimes not supported""" |
243 |
for filename in [':', '\\', chr(175)]: |
for filename in [':', '\\', chr(175)]: |
244 |
rp = subdir.append(filename) |
try: |
245 |
try: rp.touch() |
rp = subdir.append(filename) |
246 |
except IOError: |
rp.touch() |
247 |
|
except (IOError, OSError): |
248 |
assert not rp.lstat() |
assert not rp.lstat() |
249 |
return 0 |
return 0 |
250 |
assert rp.lstat() |
else: |
251 |
rp.delete() |
assert rp.lstat() |
252 |
|
rp.delete() |
253 |
return 1 |
return 1 |
254 |
|
|
255 |
def sanity_check(): |
def sanity_check(): |