This makes all the failed tests understandable, since they all crash
with strings like:
AssertionError: Arch RCS not found
Which makes more sense than spitting out the raw CommandError.
It also means that installed_rcs() actually works now ;).
rcs = module.new()
if matchfn(rcs) == True:
return rcs
- else:
- del(rcs)
+ del(rcs)
return RCS()
def rcs_by_name(rcs_name):
except OSError, e:
if e.errno == errno.ENOENT:
return False
- raise e
+ except CommandError:
+ return False
def detect(self, path="."):
"""
Detect whether a directory is revision controlled with this RCS.