Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 3
0
import pyproj

pyproj.test()
Exemplo n.º 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)
import pyproj
pyproj.test()

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