diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2011-07-06 22:11:48 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2011-07-06 22:11:48 +0200 |
commit | 690828ce2e03ce32c5a66186c543d7c5050287e4 (patch) | |
tree | 219b433c182db92d7c62c78bbca5253883be10b8 /git/test/lib/helper.py | |
parent | 2baf8a493618463d2bb41b8e96c8304bf48e2c8a (diff) | |
download | gitpython-690828ce2e03ce32c5a66186c543d7c5050287e4.tar.gz |
Added basis for initial dulwich integration. Many basic issues should surface while integrating this
Diffstat (limited to 'git/test/lib/helper.py')
-rw-r--r-- | git/test/lib/helper.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/git/test/lib/helper.py b/git/test/lib/helper.py index d9a92a52..ef2d3280 100644 --- a/git/test/lib/helper.py +++ b/git/test/lib/helper.py @@ -207,7 +207,11 @@ class GlobalsItemDeletorMetaCls(type): new_type = super(GlobalsItemDeletorMetaCls, metacls).__new__(metacls, name, bases, clsdict) if name != metacls.ModuleToDelete: mod = __import__(new_type.__module__, globals(), locals(), new_type.__module__) - delattr(mod, metacls.ModuleToDelete) + try: + delattr(mod, metacls.ModuleToDelete) + except AttributeError: + pass + #END skip case that people import our base without actually using it #END handle deletion return new_type |