コード例 #1
0
def test_doctests():
    failure_count = pyproj.test()
    # if the below line fails, doctests have failed
    assert (
        failure_count == 0
    ), "{0} of the doctests in " "lib/pyproj/__init__.py failed".format(
        failure_count)
コード例 #2
0
def test_doctests():
    failure_count = pyproj.test()

    # shapely wheels not on windows, so allow failures there
    expected_failure_count = 0
    try:
        import shapely  # noqa
    except ImportError:
        if os.name == "nt" or platform.uname()[4] != "x86_64":
            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)
コード例 #3
0
import pyproj

pyproj.test()
コード例 #4
0
def test_doctests():
    failure_count = pyproj.test()
    # if the below line fails, doctests have failed
    assert (
        failure_count == 0
    ), "{0} of the doctests in " "lib/pyproj/__init__.py failed".format(failure_count)
コード例 #5
0
import pyproj
pyproj.test()

from pyproj import Proj
Proj(init='epsg:4269')