pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/jwilk-mirrors/python-pkginfo/commit/edd3d8fe8e4bbb0a3b7439038f428140301a0d2c

link crossorigen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-68dd150ce6c8e711.css" /> Fix tests broken by bump of 'metadata_version' in 'wheels' >= '0.44.0' · jwilk-mirrors/python-pkginfo@edd3d8f · GitHub
Skip to content

Commit edd3d8f

Browse files
committed
Fix tests broken by bump of 'metadata_version' in 'wheels' >= '0.44.0'
LP #2090840.
1 parent acaf5e4 commit edd3d8f

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

CHANGES.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
``pkginfo`` Changelog
22
=====================
33

4+
1.11.3 (unreleased)
5+
-------------------
6+
7+
- Fix tests broken by bump of 'metadata_version' in 'wheels' >= '0.44.0'.
8+
LP #2090840.
9+
410
1.11.2 (2024-10-10)
511
-------------------
612

pkginfo/tests/test_installed.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,21 @@ def test_installed_ctor_w_egg_info_as_file():
129129
assert(installed.package_name == 'pkginfo.tests.funny')
130130

131131
def test_installed_ctor_w_dist_info():
132+
from packaging import version
132133
import wheel
133134

134135
installed = _make_installed('wheel')
135136

136-
assert(installed.metadata_version == '2.1')
137137
assert(installed.package == wheel)
138138
assert(installed.package_name == 'wheel')
139139

140+
# See: https://bugs.launchpad.net/pkginfo/+bug/2090840
141+
installed_version = version.Version(installed.version)
142+
if installed_version < version.Version('0.44.dev0'):
143+
assert(installed.metadata_version == '2.1')
144+
else:
145+
assert(installed.metadata_version == '2.3')
146+
140147
def test_installed_namespaced_pkg_installed_via_setuptools():
141148
where, _ = os.path.split(__file__)
142149
wonky = os.path.join(where, 'wonky')

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy