Replies: 6 comments 5 replies
Here is pytest output:+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib/python3.10/site-packages
+ /usr/bin/pytest -ra -m 'not network' --ignore tests/test_fio_bounds.py
============================= test session starts ==============================
platform linux -- Python 3.10.14, pytest-8.1.1, pluggy-1.4.0
GDAL: 3.8.5 (3080500)
Supported drivers: CSV, DGN, DXF, ESRI Shapefile, ESRIJSON, FlatGeobuf, GML, GPKG, GeoJSON, GeoJSONSeq, Idrisi, MapInfo File, OGR_GMT, OGR_PDS, OpenFileGDB, PCIDSK, S57, SQLite, TopoJSON
rootdir: /home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6
configfile: pytest.ini
testpaths: tests
collected 1836 items / 5 deselected / 1831 selected
tests/test__env.py ............... [ 0%]
tests/test_bigint.py ... [ 0%]
tests/test_binary_field.py . [ 1%]
tests/test_bounds.py .....s........s.. [ 1%]
tests/test_bytescollection.py ......................................s [ 4%]
tests/test_collection.py ............................................... [ 6%]
............................................................. [ 9%]
tests/test_collection_crs.py ...... [ 10%]
tests/test_collection_legacy.py .................................. [ 12%]
tests/test_compound_crs.py . [ 12%]
tests/test_crs.py ................. [ 13%]
tests/test_cursor_interruptions.py .................... [ 14%]
tests/test_curve_geometries.py .. [ 14%]
tests/test_data_paths.py FFFF... [ 14%]
tests/test_datetime.py ...ssssssssssssssssssssssssssssssssssssssssssssss [ 17%]
sssssssssssssssssssssssssssssssssssssssssssssss. [ 20%]
tests/test_driver_options.py . [ 20%]
tests/test_drivers.py . [ 20%]
tests/test_drvsupport.py sssssssssssssssssssssssssssssssssssssssssssssss [ 22%]
ss.. [ 22%]
tests/test_encoding.py ... [ 23%]
tests/test_env.py .......... [ 23%]
tests/test_feature.py ......... [ 24%]
tests/test_fio_calc.py .FFF [ 24%]
tests/test_fio_cat.py FFFFFFFFFF.F.FF [ 25%]
tests/test_fio_collect.py FFFFFFFF [ 25%]
tests/test_fio_distrib.py FF [ 25%]
tests/test_fio_dump.py FFFFFF [ 26%]
tests/test_fio_filter.py .F [ 26%]
tests/test_fio_info.py ....FF. [ 26%]
tests/test_fio_load.py ................ [ 27%]
tests/test_fio_ls.py .... [ 27%]
tests/test_fio_rm.py ... [ 27%]
tests/test_geojson.py ...... [ 28%]
tests/test_geometry.py ................ [ 29%]
tests/test_geopackage.py ... [ 29%]
tests/test_http_session.py .................................... [ 31%]
tests/test_integration.py . [ 31%]
tests/test_layer.py .................................................... [ 34%]
..................................................... [ 36%]
tests/test_listing.py .................. [ 37%]
tests/test_logutils.py .... [ 38%]
tests/test_memoryfile.py ...........................F...............s... [ 40%]
..... [ 40%]
tests/test_meta.py ..................................................... [ 43%]
.............................................................. [ 47%]
tests/test_model.py ................................... [ 49%]
tests/test_multiconxn.py ........ [ 49%]
tests/test_non_counting_layer.py FFFFFF [ 49%]
tests/test_open.py ... [ 50%]
tests/test_profile.py .. [ 50%]
tests/test_props.py ...... [ 50%]
tests/test_read_drivers.py .. [ 50%]
tests/test_remove.py ............ [ 51%]
tests/test_revolvingdoor.py . [ 51%]
tests/test_rfc3339.py .............. [ 52%]
tests/test_rfc64_tin.py .. [ 52%]
tests/test_schema.py ................................................... [ 54%]
.....sss........F. [ 55%]
tests/test_schema_geom.py ........... [ 56%]
tests/test_session.py .............s [ 57%]
tests/test_slice.py .................................................... [ 60%]
........................................................................ [ 64%]
........................................................................ [ 68%]
........................................................................ [ 71%]
........................................................................ [ 75%]
........................................................................ [ 79%]
............................................ [ 82%]
tests/test_subtypes.py .. [ 82%]
tests/test_topojson.py . [ 82%]
tests/test_transactions.py . [ 82%]
tests/test_transform.py .......................... [ 83%]
tests/test_unicode.py .....x. [ 84%]
tests/test_version.py ..s [ 84%]
tests/test_vfs.py ...................................................... [ 87%]
............................X........................................... [ 91%]
...........X...............................X............................ [ 95%]
......X..................................X.................X............ [ 99%]
........... [ 99%]
tests/test_write.py .... [100%]
=================================== FAILURES ===================================
_____________________________ test_gdal_data_wheel _____________________________
@pytest.mark.wheel
def test_gdal_data_wheel():
"""Get GDAL data path from a wheel"""
> assert GDALDataFinder().search() == os.path.join(os.path.dirname(fiona.__file__), 'gdal_data')
E AssertionError
tests/test_data_paths.py:16: AssertionError
_____________________________ test_proj_data_wheel _____________________________
@pytest.mark.wheel
def test_proj_data_wheel():
"""Get GDAL data path from a wheel"""
> assert PROJDataFinder().search() == os.path.join(os.path.dirname(fiona.__file__), 'proj_data')
E AssertionError
tests/test_data_paths.py:22: AssertionError
___________________________ test_env_gdal_data_wheel ___________________________
@pytest.mark.wheel
def test_env_gdal_data_wheel():
runner = CliRunner()
result = runner.invoke(main_group, ['env', '--gdal-data'])
assert result.exit_code == 0
> assert result.output.strip() == os.path.join(os.path.dirname(fiona.__file__), 'gdal_data')
E AssertionError
tests/test_data_paths.py:30: AssertionError
___________________________ test_env_proj_data_wheel ___________________________
@pytest.mark.wheel
def test_env_proj_data_wheel():
runner = CliRunner()
result = runner.invoke(main_group, ['env', '--proj-data'])
assert result.exit_code == 0
> assert result.output.strip() == os.path.join(os.path.dirname(fiona.__file__), 'proj_data')
E AssertionError
tests/test_data_paths.py:38: AssertionError
________________________________ test_calc_seq _________________________________
feature_seq = '{"geometry": {"type": "Polygon", "coordinates": [[[-111.73527526855469, 41.995094299316406], [-111.65931701660156, 41...ame=Wellsville%20Mountain", "AGBUR": "FS", "AREA": 0.0104441, "STATE_FIPS": "49", "WILDRNP020": 336, "STATE": "UT"}}\n'
runner = <click.testing.CliRunner object at 0x7f3aafe97430>
def test_calc_seq(feature_seq, runner):
result = runner.invoke(main_group, ['calc',
"TEST",
"f.properties.AREA / f.properties.PERIMETER"],
feature_seq)
> assert result.exit_code == 0
E AssertionError
tests/test_fio_calc.py:36: AssertionError
________________________________ test_bool_seq _________________________________
feature_seq = '{"geometry": {"type": "Polygon", "coordinates": [[[-111.73527526855469, 41.995094299316406], [-111.65931701660156, 41...ame=Wellsville%20Mountain", "AGBUR": "FS", "AREA": 0.0104441, "STATE_FIPS": "49", "WILDRNP020": 336, "STATE": "UT"}}\n'
runner = <click.testing.CliRunner object at 0x7f3aafe97430>
def test_bool_seq(feature_seq, runner):
result = runner.invoke(main_group, ['calc', "TEST", "f.properties.AREA > 0.015"],
feature_seq)
> assert result.exit_code == 0
E AssertionError
tests/test_fio_calc.py:48: AssertionError
____________________________ test_existing_property ____________________________
feature_seq = '{"geometry": {"type": "Polygon", "coordinates": [[[-111.73527526855469, 41.995094299316406], [-111.65931701660156, 41...ame=Wellsville%20Mountain", "AGBUR": "FS", "AREA": 0.0104441, "STATE_FIPS": "49", "WILDRNP020": 336, "STATE": "UT"}}\n'
runner = <click.testing.CliRunner object at 0x7f3aafe97430>
def test_existing_property(feature_seq, runner):
result = runner.invoke(
main_group, ["calc", "AREA", "f.properties.AREA * 2"], feature_seq
)
> assert result.exit_code == 2
E AssertionError
tests/test_fio_calc.py:59: AssertionError
___________________________________ test_one ___________________________________
path_coutwildrnp_shp = '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/coutwildrnp.shp'
def test_one(path_coutwildrnp_shp):
runner = CliRunner()
result = runner.invoke(main_group, ['cat', path_coutwildrnp_shp])
> assert result.exit_code == 0
E AssertionError
tests/test_fio_cat.py:12: AssertionError
___________________________________ test_two ___________________________________
path_coutwildrnp_shp = '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/coutwildrnp.shp'
def test_two(path_coutwildrnp_shp):
runner = CliRunner()
result = runner.invoke(main_group, ['cat', path_coutwildrnp_shp, path_coutwildrnp_shp])
> assert result.exit_code == 0
E AssertionError
tests/test_fio_cat.py:19: AssertionError
_________________________________ test_bbox_no _________________________________
path_coutwildrnp_shp = '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/coutwildrnp.shp'
def test_bbox_no(path_coutwildrnp_shp):
runner = CliRunner()
result = runner.invoke(
main_group,
['cat', path_coutwildrnp_shp, '--bbox', '0,10,80,20'],
catch_exceptions=False)
> assert result.exit_code == 0
E AssertionError
tests/test_fio_cat.py:29: AssertionError
________________________________ test_bbox_yes _________________________________
path_coutwildrnp_shp = '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/coutwildrnp.shp'
def test_bbox_yes(path_coutwildrnp_shp):
runner = CliRunner()
result = runner.invoke(
main_group,
['cat', path_coutwildrnp_shp, '--bbox', '-109,37,-107,39'],
catch_exceptions=False)
> assert result.exit_code == 0
E AssertionError
tests/test_fio_cat.py:39: AssertionError
___________________________ test_bbox_yes_two_files ____________________________
path_coutwildrnp_shp = '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/coutwildrnp.shp'
def test_bbox_yes_two_files(path_coutwildrnp_shp):
runner = CliRunner()
result = runner.invoke(
main_group,
['cat', path_coutwildrnp_shp, path_coutwildrnp_shp, '--bbox', '-109,37,-107,39'],
catch_exceptions=False)
> assert result.exit_code == 0
E AssertionError
tests/test_fio_cat.py:49: AssertionError
______________________________ test_bbox_json_yes ______________________________
path_coutwildrnp_shp = '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/coutwildrnp.shp'
def test_bbox_json_yes(path_coutwildrnp_shp):
runner = CliRunner()
result = runner.invoke(
main_group,
['cat', path_coutwildrnp_shp, '--bbox', '[-109,37,-107,39]'],
catch_exceptions=False)
> assert result.exit_code == 0
E AssertionError
tests/test_fio_cat.py:59: AssertionError
_______________________________ test_bbox_where ________________________________
path_coutwildrnp_shp = '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/coutwildrnp.shp'
def test_bbox_where(path_coutwildrnp_shp):
runner = CliRunner()
result = runner.invoke(
main_group,
['cat', path_coutwildrnp_shp, '--bbox', '-120,40,-100,50',
'--where', "NAME LIKE 'Mount%'"],
catch_exceptions=False)
> assert result.exit_code == 0
E AssertionError
tests/test_fio_cat.py:70: AssertionError
________________________________ test_where_no _________________________________
path_coutwildrnp_shp = '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/coutwildrnp.shp'
def test_where_no(path_coutwildrnp_shp):
runner = CliRunner()
result = runner.invoke(
main_group,
['cat', path_coutwildrnp_shp, '--where', "STATE LIKE '%foo%'"],
catch_exceptions=False)
> assert result.exit_code == 0
E AssertionError
tests/test_fio_cat.py:80: AssertionError
________________________________ test_where_yes ________________________________
path_coutwildrnp_shp = '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/coutwildrnp.shp'
def test_where_yes(path_coutwildrnp_shp):
runner = CliRunner()
result = runner.invoke(
main_group,
['cat', path_coutwildrnp_shp, '--where', "NAME LIKE 'Mount%'"],
catch_exceptions=False)
> assert result.exit_code == 0
E AssertionError
tests/test_fio_cat.py:90: AssertionError
___________________________ test_where_yes_two_files ___________________________
path_coutwildrnp_shp = '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/coutwildrnp.shp'
def test_where_yes_two_files(path_coutwildrnp_shp):
runner = CliRunner()
result = runner.invoke(
main_group,
['cat', path_coutwildrnp_shp, path_coutwildrnp_shp,
'--where', "NAME LIKE 'Mount%'"],
catch_exceptions=False)
> assert result.exit_code == 0
E AssertionError
tests/test_fio_cat.py:101: AssertionError
_______________________________ test_multi_layer _______________________________
data_dir = '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data'
def test_multi_layer(data_dir):
layerdef = "1:coutwildrnp,1:coutwildrnp"
runner = CliRunner()
result = runner.invoke(
main_group, ['cat', '--layer', layerdef, data_dir])
> assert result.output.count('"Feature"') == 134
E AssertionError
tests/test_fio_cat.py:117: AssertionError
___________________________________ test_vfs ___________________________________
path_coutwildrnp_zip = '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/coutwildrnp.zip'
def test_vfs(path_coutwildrnp_zip):
runner = CliRunner()
result = runner.invoke(main_group, [
'cat', f'zip://{path_coutwildrnp_zip}'])
> assert result.exit_code == 0
E AssertionError
tests/test_fio_cat.py:131: AssertionError
____________________________ test_dst_crs_epsg3857 _____________________________
path_coutwildrnp_shp = '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/coutwildrnp.shp'
def test_dst_crs_epsg3857(path_coutwildrnp_shp):
"""Confirm fix of issue #952"""
runner = CliRunner()
result = runner.invoke(
main_group, ["cat", "--dst-crs", "EPSG:3857", path_coutwildrnp_shp]
)
> assert result.exit_code == 0
E AssertionError
tests/test_fio_cat.py:141: AssertionError
_______________________________ test_collect_rs ________________________________
feature_seq_pp_rs = '\x1e{\n "geometry": {\n "type": "Polygon", \n "coordinates": [\n [\n [\n -111.73527526855...GBUR": "FS", \n "AREA": 0.0104441, \n "STATE_FIPS": "49", \n "WILDRNP020": 336, \n "STATE": "UT"\n }\n}\n'
def test_collect_rs(feature_seq_pp_rs):
runner = CliRunner()
result = runner.invoke(
main_group, ['collect', '--src-crs', 'EPSG:3857'],
feature_seq_pp_rs,
catch_exceptions=False)
> assert result.exit_code == 0
E AssertionError
tests/test_fio_collect.py:20: AssertionError
______________________________ test_collect_no_rs ______________________________
feature_seq = '{"geometry": {"type": "Polygon", "coordinates": [[[-111.73527526855469, 41.995094299316406], [-111.65931701660156, 41...ame=Wellsville%20Mountain", "AGBUR": "FS", "AREA": 0.0104441, "STATE_FIPS": "49", "WILDRNP020": 336, "STATE": "UT"}}\n'
def test_collect_no_rs(feature_seq):
runner = CliRunner()
result = runner.invoke(
main_group, ['collect', '--src-crs', 'EPSG:3857'],
feature_seq,
catch_exceptions=False)
> assert result.exit_code == 0
E AssertionError
tests/test_fio_collect.py:30: AssertionError
_______________________________ test_collect_ld ________________________________
feature_seq = '{"geometry": {"type": "Polygon", "coordinates": [[[-111.73527526855469, 41.995094299316406], [-111.65931701660156, 41...ame=Wellsville%20Mountain", "AGBUR": "FS", "AREA": 0.0104441, "STATE_FIPS": "49", "WILDRNP020": 336, "STATE": "UT"}}\n'
def test_collect_ld(feature_seq):
runner = CliRunner()
result = runner.invoke(
main_group, ['collect', '--with-ld-context', '--add-ld-context-item', 'foo=bar'],
feature_seq,
catch_exceptions=False)
> assert result.exit_code == 0
E AssertionError
tests/test_fio_collect.py:40: AssertionError
__________________________ test_collect_rec_buffered ___________________________
feature_seq = '{"geometry": {"type": "Polygon", "coordinates": [[[-111.73527526855469, 41.995094299316406], [-111.65931701660156, 41...ame=Wellsville%20Mountain", "AGBUR": "FS", "AREA": 0.0104441, "STATE_FIPS": "49", "WILDRNP020": 336, "STATE": "UT"}}\n'
def test_collect_rec_buffered(feature_seq):
runner = CliRunner()
result = runner.invoke(main_group, ['collect', '--record-buffered'], feature_seq)
> assert result.exit_code == 0
E AssertionError
tests/test_fio_collect.py:48: AssertionError
_____________________________ test_collect_noparse _____________________________
feature_seq = '{"geometry": {"type": "Polygon", "coordinates": [[[-111.73527526855469, 41.995094299316406], [-111.65931701660156, 41...ame=Wellsville%20Mountain", "AGBUR": "FS", "AREA": 0.0104441, "STATE_FIPS": "49", "WILDRNP020": 336, "STATE": "UT"}}\n'
def test_collect_noparse(feature_seq):
runner = CliRunner()
result = runner.invoke(
main_group, ['collect', '--no-parse'],
feature_seq,
catch_exceptions=False)
> assert result.exit_code == 0
E AssertionError
tests/test_fio_collect.py:58: AssertionError
_________________________ test_collect_noparse_records _________________________
feature_seq = '{"geometry": {"type": "Polygon", "coordinates": [[[-111.73527526855469, 41.995094299316406], [-111.65931701660156, 41...ame=Wellsville%20Mountain", "AGBUR": "FS", "AREA": 0.0104441, "STATE_FIPS": "49", "WILDRNP020": 336, "STATE": "UT"}}\n'
def test_collect_noparse_records(feature_seq):
runner = CliRunner()
result = runner.invoke(
main_group, ['collect', '--no-parse', '--record-buffered'],
feature_seq,
catch_exceptions=False)
> assert result.exit_code == 0
E AssertionError
tests/test_fio_collect.py:69: AssertionError
_____________________________ test_collect_src_crs _____________________________
feature_seq = '{"geometry": {"type": "Polygon", "coordinates": [[[-111.73527526855469, 41.995094299316406], [-111.65931701660156, 41...ame=Wellsville%20Mountain", "AGBUR": "FS", "AREA": 0.0104441, "STATE_FIPS": "49", "WILDRNP020": 336, "STATE": "UT"}}\n'
def test_collect_src_crs(feature_seq):
runner = CliRunner()
result = runner.invoke(
main_group, ['collect', '--no-parse', '--src-crs', 'epsg:4326'],
feature_seq,
catch_exceptions=False)
> assert result.exit_code == 2
E AssertionError
tests/test_fio_collect.py:80: AssertionError
___________________________ test_collect_noparse_rs ____________________________
feature_seq_pp_rs = '\x1e{\n "geometry": {\n "type": "Polygon", \n "coordinates": [\n [\n [\n -111.73527526855...GBUR": "FS", \n "AREA": 0.0104441, \n "STATE_FIPS": "49", \n "WILDRNP020": 336, \n "STATE": "UT"\n }\n}\n'
def test_collect_noparse_rs(feature_seq_pp_rs):
runner = CliRunner()
result = runner.invoke(
main_group, ['collect', '--no-parse'],
feature_seq_pp_rs,
catch_exceptions=False)
> assert result.exit_code == 0
E AssertionError
tests/test_fio_collect.py:89: AssertionError
_________________________________ test_distrib _________________________________
feature_collection_pp = '\x1e{\n "type": "FeatureCollection",\n "features": [\n {\n "geometry": {\n "type": "Polygon",\n ...: 0.0104441,\n "STATE_FIPS": "49",\n "WILDRNP020": 336,\n "STATE": "UT"\n }\n }\n ]\n}\n'
def test_distrib(feature_collection_pp):
runner = CliRunner()
result = runner.invoke(main_group, ['distrib', ], feature_collection_pp)
> assert result.exit_code == 0
E AssertionError
tests/test_fio_distrib.py:12: AssertionError
______________________________ test_distrib_no_rs ______________________________
feature_collection = '{"type": "FeatureCollection", "features": [{"geometry": {"type": "Polygon", "coordinates": [[[-111.73527526855469, 41...ame=Wellsville%20Mountain", "AGBUR": "FS", "AREA": 0.0104441, "STATE_FIPS": "49", "WILDRNP020": 336, "STATE": "UT"}}]}'
def test_distrib_no_rs(feature_collection):
runner = CliRunner()
result = runner.invoke(main_group, ['distrib', ], feature_collection)
> assert result.exit_code == 0
E AssertionError
tests/test_fio_distrib.py:19: AssertionError
__________________________________ test_dump ___________________________________
path_coutwildrnp_shp = '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/coutwildrnp.shp'
def test_dump(path_coutwildrnp_shp):
runner = CliRunner()
result = runner.invoke(main_group, ['dump', path_coutwildrnp_shp])
> assert result.exit_code == 0
E AssertionError
tests/test_fio_dump.py:16: AssertionError
___________________________ test_dump_layer[routes] ____________________________
path_gpx = '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx'
layer = 'routes'
@pytest.mark.parametrize("layer", ["routes", "1", "tracks", "track_points"])
def test_dump_layer(path_gpx, layer):
runner = CliRunner()
result = runner.invoke(main_group, ["dump", path_gpx, "--layer", layer])
> assert result.exit_code == 0
E AssertionError
tests/test_fio_dump.py:24: AssertionError
______________________________ test_dump_layer[1] ______________________________
path_gpx = '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx'
layer = '1'
@pytest.mark.parametrize("layer", ["routes", "1", "tracks", "track_points"])
def test_dump_layer(path_gpx, layer):
runner = CliRunner()
result = runner.invoke(main_group, ["dump", path_gpx, "--layer", layer])
> assert result.exit_code == 0
E AssertionError
tests/test_fio_dump.py:24: AssertionError
___________________________ test_dump_layer[tracks] ____________________________
path_gpx = '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx'
layer = 'tracks'
@pytest.mark.parametrize("layer", ["routes", "1", "tracks", "track_points"])
def test_dump_layer(path_gpx, layer):
runner = CliRunner()
result = runner.invoke(main_group, ["dump", path_gpx, "--layer", layer])
> assert result.exit_code == 0
E AssertionError
tests/test_fio_dump.py:24: AssertionError
________________________ test_dump_layer[track_points] _________________________
path_gpx = '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx'
layer = 'track_points'
@pytest.mark.parametrize("layer", ["routes", "1", "tracks", "track_points"])
def test_dump_layer(path_gpx, layer):
runner = CliRunner()
result = runner.invoke(main_group, ["dump", path_gpx, "--layer", layer])
> assert result.exit_code == 0
E AssertionError
tests/test_fio_dump.py:24: AssertionError
_____________________________ test_dump_layer_vfs ______________________________
path_coutwildrnp_zip = '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/coutwildrnp.zip'
def test_dump_layer_vfs(path_coutwildrnp_zip):
path = f"zip://{path_coutwildrnp_zip}"
result = CliRunner().invoke(main_group, ["dump", path])
> assert result.exit_code == 0
E AssertionError
tests/test_fio_dump.py:31: AssertionError
___________________________________ test_seq ___________________________________
feature_seq = '{"geometry": {"type": "Polygon", "coordinates": [[[-111.73527526855469, 41.995094299316406], [-111.65931701660156, 41...ame=Wellsville%20Mountain", "AGBUR": "FS", "AREA": 0.0104441, "STATE_FIPS": "49", "WILDRNP020": 336, "STATE": "UT"}}\n'
runner = <click.testing.CliRunner object at 0x7f3aafe97430>
def test_seq(feature_seq, runner):
result = runner.invoke(main_group, ['filter',
"f.properties.AREA > 0.01"], feature_seq, catch_exceptions=False)
> assert result.exit_code == 0
E AssertionError
tests/test_fio_filter.py:17: AssertionError
______________________________ test_info_no_count ______________________________
path_gpx = '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx'
def test_info_no_count(path_gpx):
"""Make sure we can still get a `$ fio info` report on datasources that do
not support feature counting, AKA `len(collection)`.
"""
runner = CliRunner()
result = runner.invoke(main_group, ['info', path_gpx])
> assert result.exit_code == 0
E AssertionError
tests/test_fio_info.py:65: AssertionError
------------------------------ Captured log call -------------------------------
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
ERROR fiona._env:collection.py:243 `/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx' not recognized as a supported file format.
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
_______________________________ test_info_layer ________________________________
path_gpx = '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx'
def test_info_layer(path_gpx):
for layer in ('routes', '1'):
runner = CliRunner()
result = runner.invoke(main_group, [
'info',
path_gpx,
'--layer', layer])
> assert result.exit_code == 0
E AssertionError
tests/test_fio_info.py:78: AssertionError
------------------------------ Captured log call -------------------------------
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
ERROR fiona._env:collection.py:243 `/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx' not recognized as a supported file format.
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
______________________ test_write_memoryfile_drivers[GML] ______________________
driver = 'GML'
testdata_generator = <function testdata_generator.<locals>._testdata_generator at 0x7f3ab02d2b00>
@pytest.mark.parametrize(
"driver",
[
driver
for driver in supported_drivers
if _driver_supports_mode(driver, "w")
and supports_vsi(driver)
and driver not in {"MapInfo File"}
],
)
def test_write_memoryfile_drivers(driver, testdata_generator):
""" Test if driver is able to write to memoryfile """
range1 = list(range(0, 5))
schema, crs, records1, _, _ = testdata_generator(driver, range1, [])
with MemoryFile() as memfile:
with memfile.open(driver=driver, schema=schema) as c:
c.writerecords(records1)
with memfile.open(driver=driver) as c:
assert driver == c.driver
items = list(c)
> assert len(items) == len(range1)
E AssertionError
tests/test_memoryfile.py:237: AssertionError
------------------------------ Captured log call -------------------------------
INFO fiona.ogrext:io.py:86 Setting extension: root='/vsimem/36b5ea87a59143399025e96e0f25c2af/36b5ea87a59143399025e96e0f25c2af', extension='.gml'
DEBUG fiona.ogrext:collection.py:246 File doesn't exist. Creating a new one...
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
DEBUG fiona.ogrext:collection.py:246 Created layer 36b5ea87a59143399025e96e0f25c2af
DEBUG fiona.ogrext:collection.py:246 Writing started
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
DEBUG fiona.ogrext:collection.py:558 Transaction supported: 0
DEBUG fiona.ogrext:collection.py:667 Flushed data source cache
DEBUG fiona.collection:collection.py:678 Flushed buffer
DEBUG fiona.collection:collection.py:680 Stopped session
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
DEBUG fiona.ogrext:collection.py:453 OLC_FASTSETNEXTBYINDEX: 0
DEBUG fiona.ogrext:collection.py:453 OLC_FASTFEATURECOUNT: 0
DEBUG fiona.ogrext:collection.py:453 Next index: 0
DEBUG fiona.ogrext:test_memoryfile.py:236 Next index: 1
ERROR fiona._env:test_memoryfile.py:236 XML Parsing Error: invalid element name 'ogr:' at line 11, column 10
DEBUG fiona.collection:collection.py:678 Flushed buffer
DEBUG fiona.collection:collection.py:680 Stopped session
____________ TestNonCountingLayer.test_fail_getitem_negative_index _____________
> cogr_ds = exc_wrap_pointer(
fiona/ogrext.pyx:136:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> raise exc
E fiona._err.CPLE_OpenFailedError: '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx' not recognized as a supported file format.
fiona/_err.pyx:291: CPLE_OpenFailedError
During handling of the above exception, another exception occurred:
self = <tests.test_non_counting_layer.TestNonCountingLayer testMethod=test_fail_getitem_negative_index>
def setUp(self):
> self.c = fiona.open(self.path_gpx, "r", layer="track_points")
tests/test_non_counting_layer.py:12:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages/fiona/env.py:457: in wrapper
return f(*args, **kwds)
../../BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages/fiona/__init__.py:292: in open
colxn = Collection(
../../BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages/fiona/collection.py:243: in __init__
self.session.start(self, **kwargs)
fiona/ogrext.pyx:588: in fiona.ogrext.Session.start
self.cogr_ds = gdal_open_vector(path_c, 0, drivers, kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> raise DriverError(str(exc))
E fiona.errors.DriverError: '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx' not recognized as a supported file format.
fiona/ogrext.pyx:143: DriverError
------------------------------ Captured log call -------------------------------
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
ERROR fiona._env:collection.py:243 `/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx' not recognized as a supported file format.
______________________ TestNonCountingLayer.test_getitem _______________________
> cogr_ds = exc_wrap_pointer(
fiona/ogrext.pyx:136:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> raise exc
E fiona._err.CPLE_OpenFailedError: '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx' not recognized as a supported file format.
fiona/_err.pyx:291: CPLE_OpenFailedError
During handling of the above exception, another exception occurred:
self = <tests.test_non_counting_layer.TestNonCountingLayer testMethod=test_getitem>
def setUp(self):
> self.c = fiona.open(self.path_gpx, "r", layer="track_points")
tests/test_non_counting_layer.py:12:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages/fiona/env.py:457: in wrapper
return f(*args, **kwds)
../../BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages/fiona/__init__.py:292: in open
colxn = Collection(
../../BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages/fiona/collection.py:243: in __init__
self.session.start(self, **kwargs)
fiona/ogrext.pyx:588: in fiona.ogrext.Session.start
self.cogr_ds = gdal_open_vector(path_c, 0, drivers, kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> raise DriverError(str(exc))
E fiona.errors.DriverError: '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx' not recognized as a supported file format.
fiona/ogrext.pyx:143: DriverError
------------------------------ Captured log call -------------------------------
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
ERROR fiona._env:collection.py:243 `/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx' not recognized as a supported file format.
______________________ TestNonCountingLayer.test_len_fail ______________________
> cogr_ds = exc_wrap_pointer(
fiona/ogrext.pyx:136:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> raise exc
E fiona._err.CPLE_OpenFailedError: '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx' not recognized as a supported file format.
fiona/_err.pyx:291: CPLE_OpenFailedError
During handling of the above exception, another exception occurred:
self = <tests.test_non_counting_layer.TestNonCountingLayer testMethod=test_len_fail>
def setUp(self):
> self.c = fiona.open(self.path_gpx, "r", layer="track_points")
tests/test_non_counting_layer.py:12:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages/fiona/env.py:457: in wrapper
return f(*args, **kwds)
../../BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages/fiona/__init__.py:292: in open
colxn = Collection(
../../BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages/fiona/collection.py:243: in __init__
self.session.start(self, **kwargs)
fiona/ogrext.pyx:588: in fiona.ogrext.Session.start
self.cogr_ds = gdal_open_vector(path_c, 0, drivers, kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> raise DriverError(str(exc))
E fiona.errors.DriverError: '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx' not recognized as a supported file format.
fiona/ogrext.pyx:143: DriverError
------------------------------ Captured log call -------------------------------
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
ERROR fiona._env:collection.py:243 `/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx' not recognized as a supported file format.
________________________ TestNonCountingLayer.test_list ________________________
> cogr_ds = exc_wrap_pointer(
fiona/ogrext.pyx:136:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> raise exc
E fiona._err.CPLE_OpenFailedError: '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx' not recognized as a supported file format.
fiona/_err.pyx:291: CPLE_OpenFailedError
During handling of the above exception, another exception occurred:
self = <tests.test_non_counting_layer.TestNonCountingLayer testMethod=test_list>
def setUp(self):
> self.c = fiona.open(self.path_gpx, "r", layer="track_points")
tests/test_non_counting_layer.py:12:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages/fiona/env.py:457: in wrapper
return f(*args, **kwds)
../../BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages/fiona/__init__.py:292: in open
colxn = Collection(
../../BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages/fiona/collection.py:243: in __init__
self.session.start(self, **kwargs)
fiona/ogrext.pyx:588: in fiona.ogrext.Session.start
self.cogr_ds = gdal_open_vector(path_c, 0, drivers, kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> raise DriverError(str(exc))
E fiona.errors.DriverError: '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx' not recognized as a supported file format.
fiona/ogrext.pyx:143: DriverError
------------------------------ Captured log call -------------------------------
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
ERROR fiona._env:collection.py:243 `/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx' not recognized as a supported file format.
_______________________ TestNonCountingLayer.test_slice ________________________
> cogr_ds = exc_wrap_pointer(
fiona/ogrext.pyx:136:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> raise exc
E fiona._err.CPLE_OpenFailedError: '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx' not recognized as a supported file format.
fiona/_err.pyx:291: CPLE_OpenFailedError
During handling of the above exception, another exception occurred:
self = <tests.test_non_counting_layer.TestNonCountingLayer testMethod=test_slice>
def setUp(self):
> self.c = fiona.open(self.path_gpx, "r", layer="track_points")
tests/test_non_counting_layer.py:12:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages/fiona/env.py:457: in wrapper
return f(*args, **kwds)
../../BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages/fiona/__init__.py:292: in open
colxn = Collection(
../../BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages/fiona/collection.py:243: in __init__
self.session.start(self, **kwargs)
fiona/ogrext.pyx:588: in fiona.ogrext.Session.start
self.cogr_ds = gdal_open_vector(path_c, 0, drivers, kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> raise DriverError(str(exc))
E fiona.errors.DriverError: '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx' not recognized as a supported file format.
fiona/ogrext.pyx:143: DriverError
------------------------------ Captured log call -------------------------------
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
ERROR fiona._env:collection.py:243 `/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx' not recognized as a supported file format.
_____________ TestNonCountingLayer.test_warn_slice_negative_index ______________
> cogr_ds = exc_wrap_pointer(
fiona/ogrext.pyx:136:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> raise exc
E fiona._err.CPLE_OpenFailedError: '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx' not recognized as a supported file format.
fiona/_err.pyx:291: CPLE_OpenFailedError
During handling of the above exception, another exception occurred:
self = <tests.test_non_counting_layer.TestNonCountingLayer testMethod=test_warn_slice_negative_index>
def setUp(self):
> self.c = fiona.open(self.path_gpx, "r", layer="track_points")
tests/test_non_counting_layer.py:12:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages/fiona/env.py:457: in wrapper
return f(*args, **kwds)
../../BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages/fiona/__init__.py:292: in open
colxn = Collection(
../../BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages/fiona/collection.py:243: in __init__
self.session.start(self, **kwargs)
fiona/ogrext.pyx:588: in fiona.ogrext.Session.start
self.cogr_ds = gdal_open_vector(path_c, 0, drivers, kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> raise DriverError(str(exc))
E fiona.errors.DriverError: '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx' not recognized as a supported file format.
fiona/ogrext.pyx:143: DriverError
------------------------------ Captured log call -------------------------------
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
ERROR fiona._env:collection.py:243 `/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/tests/data/test_gpx.gpx' not recognized as a supported file format.
____________________ test_schema_default_fields_wrong_type _____________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-73/test_schema_default_fields_wro0')
def test_schema_default_fields_wrong_type(tmpdir):
"""Test for SchemaError if a default field is specified with a different type"""
name = str(tmpdir.join("test.gpx"))
schema = {
"properties": OrderedDict([("ele", "str"), ("time", "datetime")]),
"geometry": "Point",
}
with pytest.raises(SchemaError):
> with fiona.open(name, "w", driver="GPX", schema=schema) as c:
tests/test_schema.py:412:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages/fiona/env.py:457: in wrapper
return f(*args, **kwds)
../../BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages/fiona/__init__.py:303: in open
colxn = Collection(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <closed Collection '/tmp/pytest-of-tkloczko/pytest-73/test_schema_default_fields_wro0/test.gpx:test', mode 'w' at 0x7f3aafa1ee00>
path = UnparsedPath(path='/tmp/pytest-of-tkloczko/pytest-73/test_schema_default_fields_wro0/test.gpx')
mode = 'w', driver = 'GPX'
schema = {'geometry': 'Point', 'properties': OrderedDict([('ele', 'str'), ('time', 'datetime')])}
crs = None, encoding = None, layer = None, vsi = None, archive = None
enabled_drivers = None, crs_wkt = None, ignore_fields = None
ignore_geometry = False, include_fields = None, wkt_version = None
allow_unsupported_drivers = False, kwargs = {}
def __init__(
self,
path,
mode="r",
driver=None,
schema=None,
crs=None,
encoding=None,
layer=None,
vsi=None,
archive=None,
enabled_drivers=None,
crs_wkt=None,
ignore_fields=None,
ignore_geometry=False,
include_fields=None,
wkt_version=None,
allow_unsupported_drivers=False,
**kwargs
):
"""The required ``path`` is the absolute or relative path to
a file, such as '/data/test_uk.shp'. In ``mode`` 'r', data can
be read only. In ``mode`` 'a', data can be appended to a file.
In ``mode`` 'w', data overwrites the existing contents of
a file.
In ``mode`` 'w', an OGR ``driver`` name and a ``schema`` are
required. A Proj4 ``crs`` string is recommended. If both ``crs``
and ``crs_wkt`` keyword arguments are passed, the latter will
trump the former.
In 'w' mode, kwargs will be mapped to OGR layer creation
options.
"""
self._closed = True
if not isinstance(path, (str, Path)):
raise TypeError("invalid path: %r" % path)
if not isinstance(mode, str) or mode not in ("r", "w", "a"):
raise TypeError("invalid mode: %r" % mode)
if driver and not isinstance(driver, str):
raise TypeError("invalid driver: %r" % driver)
if schema and not hasattr(schema, "get"):
raise TypeError("invalid schema: %r" % schema)
# Rasterio's CRS is compatible with Fiona. This class
# constructor only requires that the crs value have a to_wkt()
# method.
if (
crs
and not isinstance(crs, compat.DICT_TYPES + (str, CRS))
and not (hasattr(crs, "to_wkt") and callable(crs.to_wkt))
):
raise TypeError("invalid crs: %r" % crs)
if crs_wkt and not isinstance(crs_wkt, str):
raise TypeError("invalid crs_wkt: %r" % crs_wkt)
if encoding and not isinstance(encoding, str):
raise TypeError("invalid encoding: %r" % encoding)
if layer and not isinstance(layer, (str, int)):
raise TypeError("invalid name: %r" % layer)
if vsi:
if not isinstance(vsi, str) or not vfs.valid_vsi(vsi):
raise TypeError("invalid vsi: %r" % vsi)
if archive and not isinstance(archive, str):
raise TypeError("invalid archive: %r" % archive)
if ignore_fields is not None and include_fields is not None:
raise ValueError("Cannot specify both 'ignore_fields' and 'include_fields'")
if mode == "w" and driver is None:
driver = driver_from_extension(path)
# Check GDAL version against drivers
if (
driver in driver_mode_mingdal[mode]
and get_gdal_version_tuple() < driver_mode_mingdal[mode][driver]
):
min_gdal_version = ".".join(
list(map(str, driver_mode_mingdal[mode][driver]))
)
raise DriverError(
"{driver} driver requires at least GDAL {min_gdal_version} for mode '{mode}', "
"Fiona was compiled against: {gdal}".format(
driver=driver,
mode=mode,
min_gdal_version=min_gdal_version,
gdal=get_gdal_release_name(),
)
)
self.session = None
self.iterator = None
self._len = 0
self._bounds = None
self._driver = None
self._schema = None
self._crs = None
self._crs_wkt = None
self.enabled_drivers = enabled_drivers
self.include_fields = include_fields
self.ignore_fields = ignore_fields
self.ignore_geometry = bool(ignore_geometry)
self._allow_unsupported_drivers = allow_unsupported_drivers
self._env = None
self._closed = True
# Check GDAL version against drivers
if (
driver in driver_mode_mingdal[mode]
and get_gdal_version_tuple() < driver_mode_mingdal[mode][driver]
):
min_gdal_version = ".".join(
list(map(str, driver_mode_mingdal[mode][driver]))
)
raise DriverError(
"{driver} driver requires at least GDAL {min_gdal_version} for mode '{mode}', "
"Fiona was compiled against: {gdal}".format(
driver=driver,
mode=mode,
min_gdal_version=min_gdal_version,
gdal=get_gdal_release_name(),
)
)
if vsi:
self.path = vfs.vsi_path(path, vsi, archive)
path = parse_path(self.path)
else:
path = parse_path(path)
self.path = vsi_path(path)
if mode == "w":
if layer and not isinstance(layer, str):
raise ValueError("in 'w' mode, layer names must be strings")
if driver == "GeoJSON":
if layer is not None:
raise ValueError("the GeoJSON format does not have layers")
self.name = "OgrGeoJSON"
# TODO: raise ValueError as above for other single-layer formats.
else:
self.name = layer or os.path.basename(os.path.splitext(path.path)[0])
else:
if layer in (0, None):
self.name = 0
else:
self.name = layer or os.path.basename(os.path.splitext(path)[0])
self.mode = mode
if self.mode == "w":
if driver == "Shapefile":
driver = "ESRI Shapefile"
if not driver:
raise DriverError("no driver")
if not allow_unsupported_drivers:
if driver not in supported_drivers:
> raise DriverError("unsupported driver: %r" % driver)
E fiona.errors.DriverError: unsupported driver: 'GPX'
../../BUILDROOT/python-fiona-1.9.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages/fiona/collection.py:211: DriverError
------------------------------ Captured log call -------------------------------
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
================================== XFAILURES ===================================
__________________ TestUnicodeStringField.test_write_mismatch __________________
self = <tests.test_unicode.TestUnicodeStringField testMethod=test_write_mismatch>
@pytest.mark.xfail(reason="OGR silently fails to convert strings")
def test_write_mismatch(self):
"""TOFIX: OGR silently fails to convert strings"""
# Details:
#
# If we tell OGR that we want a latin-1 encoded output file and
# give it a feature with a unicode property that can't be converted
# to latin-1, no error is raised and OGR just writes the utf-8
# encoded bytes to the output file.
#
# This might be shapefile specific.
#
# Consequences: no error on write, but there will be an error
# on reading the data and expecting latin-1.
schema = {"geometry": "Point", "properties": {"label": "str", "num": "int"}}
with fiona.open(
os.path.join(self.tempdir, "test-write-fail.shp"),
"w",
driver="ESRI Shapefile",
schema=schema,
encoding="latin1",
) as c:
c.writerecords(
[
{
"type": "Feature",
"geometry": {"type": "Point", "coordinates": [0, 0]},
"properties": {"label": "徐汇区", "num": 0},
}
]
)
with fiona.open(os.path.join(self.tempdir), encoding="latin1") as c:
f = next(iter(c))
# Next assert fails.
> assert f.properties["label"] == "徐汇区"
E AssertionError
tests/test_unicode.py:86: AssertionError
------------------------------ Captured log call -------------------------------
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
DEBUG fiona.ogrext:collection.py:246 File doesn't exist. Creating a new one...
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
DEBUG fiona.ogrext:collection.py:246 Created layer test-write-fail
DEBUG fiona.ogrext:collection.py:246 Writing started
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
DEBUG fiona.ogrext:collection.py:558 Transaction supported: 0
WARNING fiona._env:collection.py:558 One or several characters couldn't be converted correctly from UTF-8 to LATIN1. This warning will not be emitted anymore
DEBUG fiona.ogrext:collection.py:667 Flushed data source cache
DEBUG fiona.collection:collection.py:678 Flushed buffer
DEBUG fiona.collection:collection.py:680 Stopped session
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
DEBUG fiona.ogrext:collection.py:453 OLC_FASTSETNEXTBYINDEX: 1
DEBUG fiona.ogrext:collection.py:453 OLC_FASTFEATURECOUNT: 1
DEBUG fiona.ogrext:collection.py:453 Next index: 0
DEBUG fiona.ogrext:test_unicode.py:84 Next index: 1
DEBUG fiona.collection:collection.py:678 Flushed buffer
DEBUG fiona.collection:collection.py:680 Stopped session
=================================== XPASSES ====================================
________________________ VsiReadingTest.test_filter_vsi ________________________
------------------------------ Captured log call -------------------------------
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
DEBUG fiona.ogrext:collection.py:453 OLC_FASTSETNEXTBYINDEX: 0
DEBUG fiona.ogrext:collection.py:453 OLC_FASTFEATURECOUNT: 0
DEBUG fiona.ogrext:collection.py:453 Next index: 0
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 1
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 2
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 3
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 4
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 5
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 6
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 7
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 8
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 9
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 10
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 11
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 12
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 13
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 14
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 15
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 16
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 17
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 18
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 19
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 20
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 21
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 22
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 23
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 24
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 25
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 26
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 27
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 28
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 29
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 30
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 31
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 32
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 33
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 34
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 35
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 36
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 37
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 38
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 39
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 40
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 41
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 42
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 43
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 44
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 45
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 46
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 47
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 48
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 49
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 50
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 51
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 52
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 53
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 54
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 55
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 56
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 57
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 58
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 59
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 60
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 61
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 62
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 63
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 64
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 65
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 66
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 67
DEBUG fiona.collection:collection.py:678 Flushed buffer
DEBUG fiona.collection:collection.py:680 Stopped session
________________________ TestVsiReading.test_filter_vsi ________________________
------------------------------ Captured log setup ------------------------------
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
------------------------------ Captured log call -------------------------------
DEBUG fiona.ogrext:collection.py:453 OLC_FASTSETNEXTBYINDEX: 0
DEBUG fiona.ogrext:collection.py:453 OLC_FASTFEATURECOUNT: 0
DEBUG fiona.ogrext:collection.py:453 Next index: 0
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 1
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 2
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 3
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 4
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 5
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 6
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 7
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 8
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 9
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 10
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 11
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 12
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 13
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 14
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 15
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 16
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 17
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 18
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 19
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 20
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 21
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 22
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 23
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 24
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 25
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 26
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 27
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 28
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 29
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 30
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 31
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 32
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 33
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 34
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 35
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 36
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 37
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 38
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 39
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 40
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 41
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 42
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 43
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 44
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 45
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 46
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 47
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 48
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 49
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 50
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 51
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 52
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 53
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 54
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 55
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 56
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 57
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 58
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 59
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 60
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 61
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 62
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 63
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 64
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 65
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 66
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 67
---------------------------- Captured log teardown -----------------------------
DEBUG fiona.collection:collection.py:678 Flushed buffer
DEBUG fiona.collection:collection.py:680 Stopped session
________________________ TestZipReading.test_filter_vsi ________________________
------------------------------ Captured log setup ------------------------------
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
------------------------------ Captured log call -------------------------------
DEBUG fiona.ogrext:collection.py:453 OLC_FASTSETNEXTBYINDEX: 0
DEBUG fiona.ogrext:collection.py:453 OLC_FASTFEATURECOUNT: 0
DEBUG fiona.ogrext:collection.py:453 Next index: 0
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 1
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 2
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 3
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 4
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 5
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 6
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 7
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 8
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 9
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 10
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 11
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 12
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 13
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 14
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 15
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 16
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 17
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 18
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 19
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 20
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 21
DEBUG fiona.collection:collection.py:678 Flushed buffer
DEBUG fiona.collection:collection.py:680 Stopped session
DEBUG fiona.collection:collection.py:678 Flushed buffer
DEBUG fiona.collection:collection.py:680 Stopped session
DEBUG fiona.collection:collection.py:678 Flushed buffer
DEBUG fiona.collection:collection.py:680 Stopped session
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 22
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 23
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 24
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 25
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 26
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 27
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 28
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 29
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 30
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 31
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 32
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 33
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 34
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 35
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 36
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 37
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 38
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 39
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 40
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 41
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 42
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 43
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 44
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 45
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 46
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 47
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 48
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 49
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 50
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 51
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 52
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 53
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 54
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 55
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 56
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 57
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 58
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 59
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 60
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 61
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 62
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 63
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 64
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 65
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 66
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 67
---------------------------- Captured log teardown -----------------------------
DEBUG fiona.collection:collection.py:678 Flushed buffer
DEBUG fiona.collection:collection.py:680 Stopped session
____________________ TestZipArchiveReading.test_filter_vsi _____________________
------------------------------ Captured log setup ------------------------------
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
------------------------------ Captured log call -------------------------------
DEBUG fiona.ogrext:collection.py:453 OLC_FASTSETNEXTBYINDEX: 0
DEBUG fiona.ogrext:collection.py:453 OLC_FASTFEATURECOUNT: 0
DEBUG fiona.ogrext:collection.py:453 Next index: 0
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 1
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 2
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 3
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 4
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 5
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 6
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 7
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 8
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 9
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 10
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 11
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 12
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 13
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 14
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 15
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 16
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 17
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 18
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 19
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 20
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 21
DEBUG fiona.collection:collection.py:678 Flushed buffer
DEBUG fiona.collection:collection.py:680 Stopped session
DEBUG fiona.collection:collection.py:678 Flushed buffer
DEBUG fiona.collection:collection.py:680 Stopped session
DEBUG fiona.collection:collection.py:678 Flushed buffer
DEBUG fiona.collection:collection.py:680 Stopped session
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 22
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 23
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 24
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 25
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 26
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 27
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 28
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 29
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 30
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 31
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 32
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 33
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 34
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 35
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 36
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 37
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 38
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 39
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 40
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 41
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 42
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 43
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 44
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 45
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 46
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 47
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 48
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 49
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 50
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 51
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 52
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 53
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 54
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 55
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 56
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 57
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 58
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 59
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 60
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 61
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 62
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 63
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 64
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 65
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 66
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 67
---------------------------- Captured log teardown -----------------------------
DEBUG fiona.collection:collection.py:678 Flushed buffer
DEBUG fiona.collection:collection.py:680 Stopped session
_________________ TestZipArchiveReadingAbsPath.test_filter_vsi _________________
------------------------------ Captured log setup ------------------------------
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
------------------------------ Captured log call -------------------------------
DEBUG fiona.ogrext:collection.py:453 OLC_FASTSETNEXTBYINDEX: 0
DEBUG fiona.ogrext:collection.py:453 OLC_FASTFEATURECOUNT: 0
DEBUG fiona.ogrext:collection.py:453 Next index: 0
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 1
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 2
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 3
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 4
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 5
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 6
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 7
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 8
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 9
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 10
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 11
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 12
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 13
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 14
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 15
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 16
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 17
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 18
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 19
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 20
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 21
DEBUG fiona.collection:collection.py:678 Flushed buffer
DEBUG fiona.collection:collection.py:680 Stopped session
DEBUG fiona.collection:collection.py:678 Flushed buffer
DEBUG fiona.collection:collection.py:680 Stopped session
DEBUG fiona.collection:collection.py:678 Flushed buffer
DEBUG fiona.collection:collection.py:680 Stopped session
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 22
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 23
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 24
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 25
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 26
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 27
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 28
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 29
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 30
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 31
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 32
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 33
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 34
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 35
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 36
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 37
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 38
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 39
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 40
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 41
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 42
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 43
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 44
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 45
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 46
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 47
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 48
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 49
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 50
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 51
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 52
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 53
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 54
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 55
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 56
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 57
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 58
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 59
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 60
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 61
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 62
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 63
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 64
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 65
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 66
DEBUG fiona.ogrext:test_vfs.py:62 Next index: 67
---------------------------- Captured log teardown -----------------------------
DEBUG fiona.collection:collection.py:678 Flushed buffer
DEBUG fiona.collection:collection.py:680 Stopped session
____________________ TarArchiveReadingTest.test_filter_vsi _____________________
------------------------------ Captured log call -------------------------------
DEBUG fiona._env:env.py:315 GDAL data files are available at built-in paths.
DEBUG fiona._env:env.py:315 PROJ data files are available at built-in paths.
DEBUG fiona.ogrext:collection.py:453 OLC_FASTSETNEXTBYINDEX: 0
DEBUG fiona.ogrext:collection.py:453 OLC_FASTFEATURECOUNT: 0
DEBUG fiona.ogrext:collection.py:453 Next index: 0
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 1
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 2
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 3
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 4
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 5
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 6
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 7
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 8
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 9
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 10
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 11
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 12
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 13
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 14
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 15
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 16
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 17
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 18
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 19
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 20
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 21
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 22
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 23
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 24
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 25
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 26
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 27
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 28
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 29
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 30
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 31
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 32
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 33
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 34
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 35
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 36
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 37
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 38
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 39
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 40
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 41
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 42
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 43
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 44
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 45
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 46
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 47
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 48
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 49
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 50
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 51
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 52
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 53
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 54
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 55
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 56
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 57
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 58
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 59
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 60
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 61
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 62
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 63
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 64
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 65
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 66
DEBUG fiona.ogrext:test_vfs.py:43 Next index: 67
DEBUG fiona.collection:collection.py:678 Flushed buffer
DEBUG fiona.collection:collection.py:680 Stopped session
=========================== short test summary info ============================
SKIPPED [2] tests/test_bounds.py:59: Driver does not support point geometries
SKIPPED [1] tests/test_bytescollection.py:216: Changed behavior with gdal 2.3, possibly related to RFC 70:Guessing output format from output file name extension for utilities
SKIPPED [21] tests/test_datetime.py:401: use '-m gdal' to run GDAL related tests.
SKIPPED [9] tests/test_datetime.py:474: use '-m gdal' to run GDAL related tests.
SKIPPED [30] tests/test_datetime.py:691: use '-m gdal' to run GDAL related tests.
SKIPPED [12] tests/test_datetime.py:731: use '-m gdal' to run GDAL related tests.
SKIPPED [12] tests/test_datetime.py:745: use '-m gdal' to run GDAL related tests.
SKIPPED [9] tests/test_datetime.py:807: use '-m gdal' to run GDAL related tests.
SKIPPED [4] tests/test_drvsupport.py:18: use '-m gdal' to run GDAL related tests.
SKIPPED [14] tests/test_drvsupport.py:26: use '-m gdal' to run GDAL related tests.
SKIPPED [5] tests/test_drvsupport.py:67: use '-m gdal' to run GDAL related tests.
SKIPPED [11] tests/test_drvsupport.py:99: use '-m gdal' to run GDAL related tests.
SKIPPED [7] tests/test_drvsupport.py:157: use '-m gdal' to run GDAL related tests.
SKIPPED [5] tests/test_drvsupport.py:219: use '-m gdal' to run GDAL related tests.
SKIPPED [3] tests/test_drvsupport.py:243: use '-m gdal' to run GDAL related tests.
SKIPPED [1] tests/test_memoryfile.py:297: FileGDB driver not available
SKIPPED [2] tests/test_schema.py:225: Only relevant for GDAL 1.x
SKIPPED [1] tests/test_schema.py:241: Only relevant for GDAL 1.x
SKIPPED [1] tests/test_session.py:65: Only raises on GDAL 1.x
SKIPPED [1] tests/test_version.py:31: Requires travis CI environment
XFAIL tests/test_unicode.py::TestUnicodeStringField::test_write_mismatch - OGR silently fails to convert strings
XPASS tests/test_vfs.py::VsiReadingTest::test_filter_vsi - The number of features present in the archive differs based on the GDAL version.
XPASS tests/test_vfs.py::TestVsiReading::test_filter_vsi - The number of features present in the archive differs based on the GDAL version.
XPASS tests/test_vfs.py::TestZipReading::test_filter_vsi - The number of features present in the archive differs based on the GDAL version.
XPASS tests/test_vfs.py::TestZipArchiveReading::test_filter_vsi - The number of features present in the archive differs based on the GDAL version.
XPASS tests/test_vfs.py::TestZipArchiveReadingAbsPath::test_filter_vsi - The number of features present in the archive differs based on the GDAL version.
XPASS tests/test_vfs.py::TarArchiveReadingTest::test_filter_vsi - The number of features present in the archive differs based on the GDAL version.
FAILED tests/test_data_paths.py::test_gdal_data_wheel - AssertionError
FAILED tests/test_data_paths.py::test_proj_data_wheel - AssertionError
FAILED tests/test_data_paths.py::test_env_gdal_data_wheel - AssertionError
FAILED tests/test_data_paths.py::test_env_proj_data_wheel - AssertionError
FAILED tests/test_fio_calc.py::test_calc_seq - AssertionError
FAILED tests/test_fio_calc.py::test_bool_seq - AssertionError
FAILED tests/test_fio_calc.py::test_existing_property - AssertionError
FAILED tests/test_fio_cat.py::test_one - AssertionError
FAILED tests/test_fio_cat.py::test_two - AssertionError
FAILED tests/test_fio_cat.py::test_bbox_no - AssertionError
FAILED tests/test_fio_cat.py::test_bbox_yes - AssertionError
FAILED tests/test_fio_cat.py::test_bbox_yes_two_files - AssertionError
FAILED tests/test_fio_cat.py::test_bbox_json_yes - AssertionError
FAILED tests/test_fio_cat.py::test_bbox_where - AssertionError
FAILED tests/test_fio_cat.py::test_where_no - AssertionError
FAILED tests/test_fio_cat.py::test_where_yes - AssertionError
FAILED tests/test_fio_cat.py::test_where_yes_two_files - AssertionError
FAILED tests/test_fio_cat.py::test_multi_layer - AssertionError
FAILED tests/test_fio_cat.py::test_vfs - AssertionError
FAILED tests/test_fio_cat.py::test_dst_crs_epsg3857 - AssertionError
FAILED tests/test_fio_collect.py::test_collect_rs - AssertionError
FAILED tests/test_fio_collect.py::test_collect_no_rs - AssertionError
FAILED tests/test_fio_collect.py::test_collect_ld - AssertionError
FAILED tests/test_fio_collect.py::test_collect_rec_buffered - AssertionError
FAILED tests/test_fio_collect.py::test_collect_noparse - AssertionError
FAILED tests/test_fio_collect.py::test_collect_noparse_records - AssertionError
FAILED tests/test_fio_collect.py::test_collect_src_crs - AssertionError
FAILED tests/test_fio_collect.py::test_collect_noparse_rs - AssertionError
FAILED tests/test_fio_distrib.py::test_distrib - AssertionError
FAILED tests/test_fio_distrib.py::test_distrib_no_rs - AssertionError
FAILED tests/test_fio_dump.py::test_dump - AssertionError
FAILED tests/test_fio_dump.py::test_dump_layer[routes] - AssertionError
FAILED tests/test_fio_dump.py::test_dump_layer[1] - AssertionError
FAILED tests/test_fio_dump.py::test_dump_layer[tracks] - AssertionError
FAILED tests/test_fio_dump.py::test_dump_layer[track_points] - AssertionError
FAILED tests/test_fio_dump.py::test_dump_layer_vfs - AssertionError
FAILED tests/test_fio_filter.py::test_seq - AssertionError
FAILED tests/test_fio_info.py::test_info_no_count - AssertionError
FAILED tests/test_fio_info.py::test_info_layer - AssertionError
FAILED tests/test_memoryfile.py::test_write_memoryfile_drivers[GML] - Asserti...
FAILED tests/test_non_counting_layer.py::TestNonCountingLayer::test_fail_getitem_negative_index
FAILED tests/test_non_counting_layer.py::TestNonCountingLayer::test_getitem
FAILED tests/test_non_counting_layer.py::TestNonCountingLayer::test_len_fail
FAILED tests/test_non_counting_layer.py::TestNonCountingLayer::test_list - fi...
FAILED tests/test_non_counting_layer.py::TestNonCountingLayer::test_slice - f...
FAILED tests/test_non_counting_layer.py::TestNonCountingLayer::test_warn_slice_negative_index
FAILED tests/test_schema.py::test_schema_default_fields_wrong_type - fiona.er...
= 47 failed, 1626 passed, 151 skipped, 5 deselected, 1 xfailed, 6 xpassed in 18.57s = |
|
The tests are all passing in Fiona's CI system. Some of your failures indicate a missing GPX file or a missing driver - is the installation complete? I recall a previous issue too, in which Fiona calls out to the network for some functionalities, e.g. looking up GIS WKT strings. So while it is goog practise in general, I would suggest allowing Fiona network access if the tests are required to be passed. |
Could you please tell a bit more exactly may be missing in my case? 🤔
As I wrote I'm working on packaging |
|
I've converted this to a discussion. There's nothing to be fixed in the fiona project. @kloczek I see two problems.
|
|
Cool - which package manager or distro are you making rpms for? The two acronyms stand for Geographic Information System, and Well Known Text (strings). I use WKT to refer to the standard names of Coordinate Reference Systems (CRSs), e.g. WGS84 etc.: https://epsg.io/?q= but detailed geometry can be represented in WKT format too. The internet connection requirement was in an issue with Cartopy anyway. It was not confirmed a Fiona back end was being used, let alone that that was the cause. |
rpm and Solaris IPS.
Thank you for the explanation. `I've checked one more time on CI line on which you pointed So according to what see here looks like I should disable BTW: that line .. pytest should net be executed like above because when python is executed with BTW2: I have small fix for build dependencies: --- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,7 +1,6 @@
[build-system]
requires = [
"cython~=3.0.2",
- "oldest-supported-numpy",
"setuptools>=67.8",
"wheel",
]
|
Uh oh!
There was an error while loading. Please reload this page.
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolationbuildwith--no-isolationI'm using during all processes only locally installed modulesinstallermodulecut off from access to the public network(pytest is executed with-m "not network")List of installed modules in build env:
Please let me know if you need more details or want me to perform some diagnostics.
All reactions