Comment 1 for bug 2052318

Revision history for this message
Skia (hyask) wrote :

Import from Debian truncated the message, but here are the failures:
```
> =================================== FAILURES ===================================
> _________________ test_subdivisions_have_subdivision_as_parent _________________
>
> def test_subdivisions_have_subdivision_as_parent():
> fr_01 = pycountry.subdivisions.get(code="FR-01")
> assert fr_01.code == "FR-01"
> assert fr_01.name == "Ain"
> assert fr_01.type == "Metropolitan department"
> > assert fr_01.parent_code == "FR-ARA"
> E AssertionError: assert 'FR-FR-ARA' == 'FR-ARA'
> E - FR-ARA
> E + FR-FR-ARA
> E ? +++
>
> ../../../src/pycountry/tests/test_general.py:121: AssertionError
> ___________________________ test_subdivision_parent ____________________________
>
> def test_subdivision_parent():
> s = pycountry.subdivisions
> sd = s.get(code="CV-BV")
> > assert sd.parent_code == "CV-B"
> E AssertionError: assert 'CV-CV-B' == 'CV-B'
> E - CV-B
> E + CV-CV-B
>
```
Basically what we have in autopkgtest (https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-noble/noble/amd64/p/pycountry/20240115_211014_71f50@/log.gz)

There is a patch in the Debian bug, so this should resolve itself at some point.