Bug#950660: python-pyproj FTBFS: test failures

Adrian Bunk bunk at debian.org
Tue Feb 4 15:10:36 GMT 2020


Source: python-pyproj
Version: 2.4.2+ds-2
Severity: serious
Tags: ftbfs

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/python-pyproj.html

...
=================================== FAILURES ===================================
__________________________________ test_datum __________________________________

aoi_data_directory = None

    def test_datum(aoi_data_directory):
        p1 = Proj(proj="latlong", datum="WGS84")
        s_1 = -111.5
        s_2 = 45.25919444444
        p2 = Proj(proj="utm", zone=10, datum="NAD27")
        x2, y2 = transform(p1, p2, s_1, s_2)
>       assert_almost_equal((x2, y2), (1402291.0833290431, 5076289.591846835))
E       AssertionError: 
E       Arrays are not almost equal to 7 decimals
E       
E       Mismatch: 100%
E       Max absolute difference: 5.10040385
E       Max relative difference: 3.63719338e-06
E        x: array([1402285.9829252, 5076292.4212746])
E        y: array([1402291.083329 , 5076289.5918468])

test/test_datum.py:12: AssertionError
________________________________ test_doctests _________________________________

aoi_data_directory = None

    def test_doctests(aoi_data_directory):
        """run the examples in the docstrings using the doctest module"""
    
        with warnings.catch_warnings():
            warnings.filterwarnings(
                "ignore",
                "You will likely lose important projection information when",
                UserWarning,
            )
    
            failure_count_proj, test_count = doctest.testmod(pyproj.proj, verbose=True)
            failure_count_crs, test_count_crs = doctest.testmod(pyproj.crs, verbose=True)
            failure_count_geod, test_count_geod = doctest.testmod(pyproj.geod, verbose=True)
            failure_count_transform, test_count_transform = doctest.testmod(
                pyproj.transformer, verbose=True
            )
    
        failure_count = (
            failure_count_proj
            + failure_count_crs
            + failure_count_geod
            + failure_count_transform
        )
        # Missing shapely wheels for Windows, non x86_64 platforms, and python 3.8
        expected_failure_count = 0
        try:
            import shapely  # noqa
        except ImportError:
            if (
                os.name == "nt"
                or platform.uname()[4] != "x86_64"
                or (sys.version_info.major, sys.version_info.minor) >= (3, 8)
            ):
                expected_failure_count = 6
    
        # if the below line fails, doctests have failed
>       assert (
            failure_count == expected_failure_count
        ), "{0} of the doctests in " "lib/pyproj/__init__.py failed".format(failure_count)
E       AssertionError: 3 of the doctests in lib/pyproj/__init__.py failed
E       assert 3 == 0
E         -3
E         +0

test/test_doctest_wrapper.py:50: AssertionError
...
________________________ test_transform__out_of_bounds _________________________

    def test_transform__out_of_bounds():
        with pytest.warns(FutureWarning):
            transformer = Transformer.from_proj("+init=epsg:4326", "+init=epsg:27700")
        if LooseVersion(proj_version_str) >= LooseVersion("6.3.0"):
            with pytest.raises(ProjError):
>               transformer.transform(100000, 100000, errcheck=True)
E               Failed: DID NOT RAISE <class 'pyproj.exceptions.ProjError'>

test/test_transformer.py:266: Failed
_________________ test_transformer__operations__scope_remarks __________________

    def test_transformer__operations__scope_remarks():
        transformer = Transformer.from_crs(28356, 7856)
        assert transformer.scope is None
        assert [op.scope for op in transformer.operations] == [
            None,
            "Conformal transformation of GDA94 coordinates that have been derived through "
            "GNSS CORS.",
            None,
        ]
>       assert [op.remarks for op in transformer.operations] == [
            None,
            "Scale difference in ppb where 1/billion = 1E-9. Derivation excluded Cocos, "
            "Christmas and Macquarie Islands but is applied there. See codes 8444-46 for "
            "equivalents using NTv2 method. See code 8447 for alternative including "
            "distortion model for Aus only.",
            None,
        ]
E       AssertionError: assert [None, 'Scale... only.', None] == [None, 'Scale ... only.', None]
E         At index 1 diff: 'Scale difference in ppb where 1/billion = 1E-9. See CT codes 8444-46 for NTv2 method giving equivalent results for Christmas Island, Cocos Islands and Australia respectively. See CT code 8447 for alternative including distortion model for Australia only.' != 'Scale difference in ppb where 1/billion = 1E-9. Derivation excluded Cocos, Christmas and Macquarie Islands but is applied there. See codes 8444-46 for equivalents using NTv2 method. See code 8447 for alternative including distortion model for Aus only.'
E         Full diff:
E         [None,
E         -  'Scale difference in ppb ...
E         
E         ...Full output truncated (12 lines hidden), use '-vv' to show

test/test_transformer.py:499: AssertionError
==================== 4 failed, 321 passed in 37.67 seconds =====================
E: pybuild pybuild:341: test: plugin distutils failed with: exit code=1: cd /build/1st/python-pyproj-2.4.2+ds/.pybuild/cpython3_3.8_pyproj/build; python3.8 -m pytest -v
dh_auto_test: error: pybuild --test -i python{version} -p "3.8 3.7" returned exit code 13
make[1]: *** [debian/rules:31: override_dh_auto_test] Error 25



More information about the Pkg-grass-devel mailing list