issue #590: whoops, import missing test modules

This commit is contained in:
David Wilson 2019-08-17 22:02:32 +01:00
parent f26a00de54
commit c81f366fc6
4 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,5 @@
# #590: a subpackage that turns itself into a module from elsewhere on sys.path.
I_AM = "the subpackage that was replaced with a system module"
import sys
import system_distro
sys.modules[__name__] = system_distro

View File

@ -0,0 +1 @@
I_AM = "the module inside the replaced subpackage"

View File

@ -0,0 +1,2 @@
# #590: a system module that replaces some subpackage
I_AM = "the system module that replaced the subpackage"

View File

@ -159,7 +159,6 @@ class BrokenModulesTest(testlib.TestCase):
self.assertEquals(1, responder.get_module_count)
self.assertEquals(1, responder.good_load_module_count)
self.assertEquals(7642, responder.good_load_module_size)
self.assertEquals(0, responder.bad_load_module_count)
call = router._async_route.mock_calls[0]