Skip to content
Snippets Groups Projects
Commit 8377b2bb authored by Georges Racinet's avatar Georges Racinet
Browse files

hg-git: fixing coverage pragma for conditional imports

Apparently, it is possible for the ImportError to be raised
immediately, and not at first attribute access, making thus
the latter uncovered
parent 9c390233
Branches
Tags
No related merge requests found
......@@ -47,7 +47,8 @@
try:
from hgext3rd import hggit
hggit.__doc__ # forcing demandimport to import it
# forcing demandimport to import it
hggit.__doc__ # pragma no cover
except ImportError: # pragma no cover (fallback for hg-git < 0.11)
try:
import hggit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment