test python dependency detection and --alternate-project argument
This commit is contained in:
parent
5ec3cebcdf
commit
85de7a3deb
4 changed files with 160 additions and 3 deletions
|
@ -17,7 +17,7 @@ is_py2 = (sys.version_info[0] == 2)
|
|||
is_py3 = (sys.version_info[0] == 3)
|
||||
|
||||
|
||||
if is_py2:
|
||||
if is_py2: # pragma: nocover
|
||||
|
||||
def u(text):
|
||||
try:
|
||||
|
@ -31,7 +31,7 @@ if is_py2:
|
|||
basestring = basestring
|
||||
|
||||
|
||||
elif is_py3:
|
||||
elif is_py3: # pragma: nocover
|
||||
|
||||
def u(text):
|
||||
if isinstance(text, bytes):
|
||||
|
@ -42,7 +42,7 @@ elif is_py3:
|
|||
|
||||
try:
|
||||
from importlib import import_module
|
||||
except ImportError:
|
||||
except ImportError: # pragma: nocover
|
||||
def _resolve_name(name, package, level):
|
||||
"""Return the absolute name of the module to be imported."""
|
||||
if not hasattr(package, 'rindex'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue