summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorEric V. Smith <eric@trueblade.com>2012-06-24 23:55:18 (GMT)
committerEric V. Smith <eric@trueblade.com>2012-06-24 23:55:18 (GMT)
commit714370fad11524158669a1307eed40f298eaf620 (patch)
treee9e6528bc263ba7165709ad28afabd26242257f0 /Lib/test
parent2895244653be4d01ffb510cfa2c12754af6423a9 (diff)
downloadcpython-714370fad11524158669a1307eed40f298eaf620.zip
cpython-714370fad11524158669a1307eed40f298eaf620.tar.gz
cpython-714370fad11524158669a1307eed40f298eaf620.tar.bz2
Give test directory a more reasonable name.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/namespace_pkgs/module_and_namespace_package/a_test.py (renamed from Lib/test/namespace_pkgs/module_and_file/a_test.py)0
-rw-r--r--Lib/test/namespace_pkgs/module_and_namespace_package/a_test/empty (renamed from Lib/test/namespace_pkgs/module_and_file/a_test/empty)0
-rw-r--r--Lib/test/test_namespace_pkgs.py6
3 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/namespace_pkgs/module_and_file/a_test.py b/Lib/test/namespace_pkgs/module_and_namespace_package/a_test.py
index 43cbedb..43cbedb 100644
--- a/Lib/test/namespace_pkgs/module_and_file/a_test.py
+++ b/Lib/test/namespace_pkgs/module_and_namespace_package/a_test.py
diff --git a/Lib/test/namespace_pkgs/module_and_file/a_test/empty b/Lib/test/namespace_pkgs/module_and_namespace_package/a_test/empty
index e69de29..e69de29 100644
--- a/Lib/test/namespace_pkgs/module_and_file/a_test/empty
+++ b/Lib/test/namespace_pkgs/module_and_namespace_package/a_test/empty
diff --git a/Lib/test/test_namespace_pkgs.py b/Lib/test/test_namespace_pkgs.py
index 7ad511f..6693d64 100644
--- a/Lib/test/test_namespace_pkgs.py
+++ b/Lib/test/test_namespace_pkgs.py
@@ -276,10 +276,12 @@ class ZipWithMissingDirectory(NamespacePackageTest):
self.assertEqual(bar.two.attr, 'missing_directory foo two')
-class ModuleAndFileInSameDir(NamespacePackageTest):
- paths = ['module_and_file']
+class ModuleAndNamespacePackageInSameDir(NamespacePackageTest):
+ paths = ['module_and_namespace_package']
def test_module_before_namespace_package(self):
+ # Make sure we find the module in preference to the
+ # namespace package.
import a_test
self.assertEqual(a_test.attr, 'in module')