File tree Expand file tree Collapse file tree
namespace_pkgs/module_and_namespace_package Expand file tree Collapse file tree File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -276,10 +276,12 @@ def test_present_directory(self):
276276 self .assertEqual (bar .two .attr , 'missing_directory foo two' )
277277
278278
279- class ModuleAndFileInSameDir (NamespacePackageTest ):
280- paths = ['module_and_file ' ]
279+ class ModuleAndNamespacePackageInSameDir (NamespacePackageTest ):
280+ paths = ['module_and_namespace_package ' ]
281281
282282 def test_module_before_namespace_package (self ):
283+ # Make sure we find the module in preference to the
284+ # namespace package.
283285 import a_test
284286 self .assertEqual (a_test .attr , 'in module' )
285287
Original file line number Diff line number Diff line change @@ -991,8 +991,8 @@ LIBSUBDIRS= tkinter tkinter/test tkinter/test/test_tkinter \
991991 test/namespace_pkgs/project3 \
992992 test/namespace_pkgs/project3/parent \
993993 test/namespace_pkgs/project3/parent/child \
994- test/namespace_pkgs/module_and_file \
995- test/namespace_pkgs/module_and_file /a_test \
994+ test/namespace_pkgs/module_and_namespace_package \
995+ test/namespace_pkgs/module_and_namespace_package /a_test \
996996 collections concurrent concurrent/futures encodings \
997997 email email/mime test/test_email test/test_email/data \
998998 html json test/json_tests http dbm xmlrpc \
You can’t perform that action at this time.
0 commit comments