aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_resources.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2006-01-10 03:49:22 +0000
committerPJ Eby <distutils-sig@python.org>2006-01-10 03:49:22 +0000
commit51d68aa576cd63dab44ed6f9578211a0e90def9a (patch)
tree73e807c237b941536b12abc76a43948c3fc97be4 /setuptools/tests/test_resources.py
parentf95da2a33da64374abfa0d5c45dd3e5d01d73bd3 (diff)
downloadexternal_python_setuptools-51d68aa576cd63dab44ed6f9578211a0e90def9a.tar.gz
external_python_setuptools-51d68aa576cd63dab44ed6f9578211a0e90def9a.tar.bz2
external_python_setuptools-51d68aa576cd63dab44ed6f9578211a0e90def9a.zip
``safe_name()`` now allows dots in project names, and there is a new
``to_filename()`` function that escapes project names and versions for safe use in constructing egg filenames from a Distribution object's metadata. Note that allowing dots may now cause problems for projects with '.' in the name that were previously installed, since such projects had to be spelled with a '-' before. The '-' name will no longer match the '.' project, and there is no real room for backward compatibility here. :( --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041994
Diffstat (limited to 'setuptools/tests/test_resources.py')
-rw-r--r--setuptools/tests/test_resources.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/tests/test_resources.py b/setuptools/tests/test_resources.py
index 8ce1117a..b4dbfdbd 100644
--- a/setuptools/tests/test_resources.py
+++ b/setuptools/tests/test_resources.py
@@ -406,7 +406,7 @@ class ParseTests(TestCase):
self.assertEqual(safe_name("WSGI Utils"), "WSGI-Utils")
self.assertEqual(safe_name("WSGI Utils"), "WSGI-Utils")
self.assertEqual(safe_name("Money$$$Maker"), "Money-Maker")
- self.assertEqual(safe_name("peak.web"), "peak-web")
+ self.assertNotEqual(safe_name("peak.web"), "peak-web")
def testSafeVersion(self):
self.assertEqual(safe_version("1.2-1"), "1.2-1")