Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 714370f

Browse files
committed
Give test directory a more reasonable name.
1 parent 2895244 commit 714370f

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

Lib/test/namespace_pkgs/module_and_file/a_test.py renamed to Lib/test/namespace_pkgs/module_and_namespace_package/a_test.py

File renamed without changes.

Lib/test/namespace_pkgs/module_and_file/a_test/empty renamed to Lib/test/namespace_pkgs/module_and_namespace_package/a_test/empty

File renamed without changes.

Lib/test/test_namespace_pkgs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

Makefile.pre.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 \

0 commit comments

Comments
 (0)