diff options
author | Éric Araujo <merwok@netwok.org> | 2011-09-19 13:12:23 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-09-19 13:12:23 (GMT) |
commit | 505f0ebf8839cc0a44d06b2cef96a20e5e693e74 (patch) | |
tree | 18108900184fe11ad7b036bf4bd2b06de5302b75 /Lib/packaging/tests/test_metadata.py | |
parent | c1b7e7f8bbcae936a5e75277e9e86d9ebec5469f (diff) | |
download | cpython-505f0ebf8839cc0a44d06b2cef96a20e5e693e74.zip cpython-505f0ebf8839cc0a44d06b2cef96a20e5e693e74.tar.gz cpython-505f0ebf8839cc0a44d06b2cef96a20e5e693e74.tar.bz2 |
Final bag of small changes coming from distutils2.
- minor cleanup in Metadata
- trigger creation of the sysconfig._CONFIG_VARS dict
- home_page is used over home-page: it’s not a compound word, it’s an
escaped space
Distutils2 is now synchronized with Packaging.
Diffstat (limited to 'Lib/packaging/tests/test_metadata.py')
-rw-r--r-- | Lib/packaging/tests/test_metadata.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/packaging/tests/test_metadata.py b/Lib/packaging/tests/test_metadata.py index 68b3d97..6b7dd38 100644 --- a/Lib/packaging/tests/test_metadata.py +++ b/Lib/packaging/tests/test_metadata.py @@ -101,7 +101,7 @@ class MetadataTestCase(LoggingCatcher, # XXX caveat: the keys method and friends are not 3.x-style views # should be changed or documented - self.assertEqual(list(metadata), list(metadata.keys())) + self.assertEqual(list(metadata), metadata.keys()) def test_read_metadata(self): fields = {'name': 'project', @@ -301,7 +301,7 @@ class MetadataTestCase(LoggingCatcher, Metadata(mapping={'author': 'xxx', 'name': 'xxx', 'version': 'xxx', - 'home-page': 'xxxx'}) + 'home_page': 'xxxx'}) logs = self.get_logs(logging.WARNING) self.assertEqual(1, len(logs)) self.assertIn('not a valid version', logs[0]) |