aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-01-03 02:29:01 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-01-03 02:29:01 -0500
commitd0a3a68d5192935730eeab840790f35af971086a (patch)
tree8d0d7da2d4f1818bfa6d8e7f5187ceb697c361f6
parent26a1521e870855ef89e6481f94293cded8237571 (diff)
downloadexternal_python_setuptools-d0a3a68d5192935730eeab840790f35af971086a.tar.gz
external_python_setuptools-d0a3a68d5192935730eeab840790f35af971086a.tar.bz2
external_python_setuptools-d0a3a68d5192935730eeab840790f35af971086a.zip
Moved test_resources and test_pkg_resources to pkg_resources package.
-rw-r--r--pkg_resources/tests/__init__.py0
-rw-r--r--pkg_resources/tests/test_pkg_resources.py (renamed from tests/test_pkg_resources.py)0
-rw-r--r--pkg_resources/tests/test_resources.py (renamed from setuptools/tests/test_resources.py)8
3 files changed, 4 insertions, 4 deletions
diff --git a/pkg_resources/tests/__init__.py b/pkg_resources/tests/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/pkg_resources/tests/__init__.py
diff --git a/tests/test_pkg_resources.py b/pkg_resources/tests/test_pkg_resources.py
index 564d7cec..564d7cec 100644
--- a/tests/test_pkg_resources.py
+++ b/pkg_resources/tests/test_pkg_resources.py
diff --git a/setuptools/tests/test_resources.py b/pkg_resources/tests/test_resources.py
index 351549fa..6cc3de0b 100644
--- a/setuptools/tests/test_resources.py
+++ b/pkg_resources/tests/test_resources.py
@@ -206,13 +206,13 @@ class TestEntryPoints:
def assertfields(self, ep):
assert ep.name == "foo"
- assert ep.module_name == "setuptools.tests.test_resources"
+ assert ep.module_name == "pkg_resources.tests.test_resources"
assert ep.attrs == ("TestEntryPoints",)
assert ep.extras == ("x",)
assert ep.load() is TestEntryPoints
assert (
str(ep) ==
- "foo = setuptools.tests.test_resources:TestEntryPoints [x]"
+ "foo = pkg_resources.tests.test_resources:TestEntryPoints [x]"
)
def setup_method(self, method):
@@ -221,13 +221,13 @@ class TestEntryPoints:
def testBasics(self):
ep = EntryPoint(
- "foo", "setuptools.tests.test_resources", ["TestEntryPoints"],
+ "foo", "pkg_resources.tests.test_resources", ["TestEntryPoints"],
["x"], self.dist
)
self.assertfields(ep)
def testParse(self):
- s = "foo = setuptools.tests.test_resources:TestEntryPoints [x]"
+ s = "foo = pkg_resources.tests.test_resources:TestEntryPoints [x]"
ep = EntryPoint.parse(s, self.dist)
self.assertfields(ep)