kellyjonbrazil / jc

CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.
MIT License
7.87k stars 206 forks source link

test_ip_address_ipv6_ipv4_mapped is failing #604

Open sudipm-mukherjee opened 1 week ago

sudipm-mukherjee commented 1 week ago

In Debian the test for test_ip_address_ipv6_ipv4_mapped is now failing. I see this in the logs:

======================================================================
FAIL: test_ip_address_ipv6_ipv4_mapped (tests.test_ip_address.MyTests.test_ip_address_ipv6_ipv4_mapped)
Test ipv6 address with ipv4 mapped string
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_jc/build/tests/test_ip_address.py", line 94, in test_ip_address_ipv6_ipv4_mapped
    self.assertEqual(jc.parsers.ip_address.parse(data, quiet=True), expected)
AssertionError: {'ver[787 chars]ed': False, 'is_unspecified': False, 'int': {'[1595 chars]11'}} != {'ver[787 chars]ed': True, 'is_unspecified': False, 'int': {'i[1594 chars]11'}}
Diff is 2775 characters long. Set self.maxDiff to None to see it.

----------------------------------------------------------------------
kellyjonbrazil commented 6 days ago

I added some fixes for similar issues that have cropped up in Python 3.12 and 3.13 and backports on the dev branch. This might be a new one I have to look into.

kellyjonbrazil commented 5 days ago

I have fixed this in the dev branch:

https://github.com/kellyjonbrazil/jc/blob/dev/tests/test_ip_address.py#L87