forked from pool/python-twine
* Resolve DeprecationWarnings when extracting ``twine`` metadata. * Fix bug for Repository URLs with auth where the port was lost. When attempting to prevent printing authentication credentials in URLs provided with username and password, we did not properly handle the case where the URL also contains a port (when reconstructing the URL). This is now handled and tested to ensure no regressions. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-twine?expand=0&rev=44
21 lines
751 B
Diff
21 lines
751 B
Diff
---
|
|
tests/test_package.py | 10 +++++-----
|
|
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
Index: twine-5.1.0/tests/test_package.py
|
|
===================================================================
|
|
--- twine-5.1.0.orig/tests/test_package.py
|
|
+++ twine-5.1.0/tests/test_package.py
|
|
@@ -384,11 +384,6 @@ def test_fips_metadata_excludes_md5_and_
|
|
"read_data, missing_fields",
|
|
[
|
|
pytest.param(
|
|
- b"Metadata-Version: 102.3\nName: test-package\nVersion: 1.0.0\n",
|
|
- "Name, Version",
|
|
- id="unsupported Metadata-Version",
|
|
- ),
|
|
- pytest.param(
|
|
b"Metadata-Version: 2.3\nName: UNKNOWN\nVersion: UNKNOWN\n",
|
|
"Name, Version",
|
|
id="missing Name and Version",
|