Commit 7dd7b07e authored by dgaudet's avatar dgaudet

bug#12949: eliminate an exception during fs abilities testing on OS X 10.4.

fix from Daniel Westermann-Clark.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@596 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent b519ea3f
...@@ -23,6 +23,9 @@ debian bug#306798: SELinux security attributes can not be removed and ...@@ -23,6 +23,9 @@ debian bug#306798: SELinux security attributes can not be removed and
rdiff-backup should not fail when it fails to remove them from temp rdiff-backup should not fail when it fails to remove them from temp
files. fix from Konrad Podloucky. files. fix from Konrad Podloucky.
bug#12949: eliminate an exception during fs abilities testing on OS X 10.4.
fix from Daniel Westermann-Clark.
New in v0.13.6 (2005/04/07) New in v0.13.6 (2005/04/07)
--------------------------- ---------------------------
......
...@@ -241,11 +241,13 @@ rdiff-backup-data/chars_to_quote. ...@@ -241,11 +241,13 @@ rdiff-backup-data/chars_to_quote.
def supports_unusual_chars(): def supports_unusual_chars():
"""Test handling of several chars sometimes not supported""" """Test handling of several chars sometimes not supported"""
for filename in [':', '\\', chr(175)]: for filename in [':', '\\', chr(175)]:
try:
rp = subdir.append(filename) rp = subdir.append(filename)
try: rp.touch() rp.touch()
except IOError: except (IOError, OSError):
assert not rp.lstat() assert not rp.lstat()
return 0 return 0
else:
assert rp.lstat() assert rp.lstat()
rp.delete() rp.delete()
return 1 return 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment