8000 cross port importlib-metadata PR #76 (#13903) · DinoV/cpython@f54c885 · GitHub
[go: up one dir, main page]

Skip to content

Commit f54c885

Browse files
asottileDinoV
authored andcommitted
1 parent 900f661 commit f54c885

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

Lib/importlib/metadata/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ def _from_config(cls, config):
8989
@classmethod
9090
def _from_text(cls, text):
9191
config = ConfigParser()
92+
# case sensitive: https://stackoverflow.com/q/1611799/812183
93+
config.optionxform = str
9294
try:
9395
config.read_string(text)
9496
except AttributeError: # pragma: nocover
Binary file not shown.
Binary file not shown.

Lib/test/test_importlib/test_zip.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ def test_zip_entry_points(self):
2626
scripts = dict(entry_points()['console_scripts'])
2727
entry_point = scripts['example']
2828
self.assertEqual(entry_point.value, 'example:main')
29+
entry_point = scripts['Example']
30+
self.assertEqual(entry_point.value, 'example:main')
2931

3032
def test_missing_metadata(self):
3133
self.assertIsNone(distribution('example').read_text('does not exist'))

0 commit comments

Comments
 (0)
0