Hi, On closer look, it looks like you have a different problem with autopkgtest. You have a test script which is called "python3", but you are doing "Test-Command: python3", so that is not executing your test script but is executing "/usr/bin/python3". Please modify your "debian/tests/control" file and use "Tests" instead of "Test-Command". Your debian/tests/control should look like:
Tests: python3 Depends: python3-cartopy, python3-pytest Restrictions: allow-stderr -- Regards Sudip