From 0e938a96d3045e0f894524359bb99a8cbcf69598 Mon Sep 17 00:00:00 2001
From: Jonas Trappenberg <jonas@7geese.com>
Date: Thu, 18 Aug 2016 13:48:52 -0700
Subject: [PATCH] Allow importing tests from __init__.py files

---
 nose/importer.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/nose/importer.py b/nose/importer.py
index e677658c..01a72038 100644
--- a/nose/importer.py
+++ b/nose/importer.py
@@ -39,8 +39,6 @@ def importFromPath(self, path, fqname):
         # 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] == '__init__.py':
-            path_parts.pop()
         path_parts = path_parts[:-(len(name_parts))]
         dir_path = os.sep.join(path_parts)
         # then import fqname starting from that dir