aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage/vcs
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-29 21:12:12 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-29 21:12:12 -0500
commitb1540a08131173ace920f2d3d0829e54b8f26283 (patch)
treedf536ee64a1c89ec5e5b38d0e9c27bcbbcf51303 /libbe/storage/vcs
parentd595aba006a39a2d75067fb7fc82956538e7e16d (diff)
downloadbugseverywhere-b1540a08131173ace920f2d3d0829e54b8f26283.tar.gz
Fixed make_*_testcase_subclasses() to avoid duplication.
Also removed final check for 'parent' existence in Storage_add_remove_TestCase.test_remove_nonrooted() because some VCSs (e.g. Git) don't keep track of blank directories.
Diffstat (limited to 'libbe/storage/vcs')
-rw-r--r--libbe/storage/vcs/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbe/storage/vcs/base.py b/libbe/storage/vcs/base.py
index 533ef4c..6ece16d 100644
--- a/libbe/storage/vcs/base.py
+++ b/libbe/storage/vcs/base.py
@@ -1085,7 +1085,8 @@ if libbe.TESTING == True:
vcs_testcase_classes = [
c for c in (
ob for ob in globals().values() if isinstance(ob, type))
- if issubclass(c, VCSTestCase)]
+ if issubclass(c, VCSTestCase) \
+ and c.Class == VCS]
for base_class in vcs_testcase_classes:
testcase_class_name = vcs_class.__name__ + base_class.__name__