summaryrefslogtreecommitdiff
path: root/nose
diff options
context:
space:
mode:
authorPaul Bonser <pib@paulbonser.com>2013-07-31 21:44:30 -0500
committerPaul Bonser <pib@paulbonser.com>2013-07-31 21:44:30 -0500
commit07677088453fec3ef8031000f991ab16fade4095 (patch)
tree1740023ed68ddb31faa9e2dd30d4007b11e3ddc3 /nose
parent8493ba2571832d7017c5cab7ac0df2840787932b (diff)
downloadnose-07677088453fec3ef8031000f991ab16fade4095.tar.gz
Just check for __init__.py instead
Diffstat (limited to 'nose')
-rw-r--r--nose/importer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nose/importer.py b/nose/importer.py
index d7d9120..e677658 100644
--- a/nose/importer.py
+++ b/nose/importer.py
@@ -39,7 +39,7 @@ class Importer(object):
# find the base dir of the package
path_parts = os.path.normpath(os.path.abspath(path)).split(os.sep)
name_parts = fqname.split('.')
- if path_parts[-1].startswith('__init__'):
+ if path_parts[-1] == '__init__.py':
path_parts.pop()
path_parts = path_parts[:-(len(name_parts))]
dir_path = os.sep.join(path_parts)