diff options
author | phillip.eby <phillip.eby@6015fed2-1504-0410-9fe1-9d1591cc4771> | 2006-01-10 03:49:22 +0000 |
---|---|---|
committer | phillip.eby <phillip.eby@6015fed2-1504-0410-9fe1-9d1591cc4771> | 2006-01-10 03:49:22 +0000 |
commit | e6dedc2a079c5067411ed512653f40f750b78dbb (patch) | |
tree | 73e807c237b941536b12abc76a43948c3fc97be4 /setuptools/tests/test_resources.py | |
parent | d4223cfcdf1834bd028b7c187cd597e2596d9a53 (diff) | |
download | python-setuptools-e6dedc2a079c5067411ed512653f40f750b78dbb.tar.gz |
``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. :(
git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41994 6015fed2-1504-0410-9fe1-9d1591cc4771
Diffstat (limited to 'setuptools/tests/test_resources.py')
-rw-r--r-- | setuptools/tests/test_resources.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/tests/test_resources.py b/setuptools/tests/test_resources.py index 8ce1117..b4dbfdb 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") |