summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/tests/test_metadata.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/packaging/tests/test_metadata.py')
-rw-r--r--Lib/packaging/tests/test_metadata.py4
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])