#145946 Report by node gh-actions covering 2230 tests from 61 modules resulted into 7 errors

Report

ObsPy version
1.4.2.post0+356.g283a0368fa
GitHub Pull Request
https://github.com/obspy/obspy/pull/3613
Report file
JSON document
Total runtime
219.6 sec
Report date/time
Sept. 4, 2025, 10:47 a.m.

System / Python

Architecture
64bit
Machine
x86_64
Node
gh-actions
Processor
x86_64
Python Compiler
GCC 13.3.0
Python Implementation
CPython
Python Version
3.12.11
Release
6.11.0-1018-azure
System
Linux
Version
#18~24.04.1-Ubuntu SMP Sat Jun 28 04:46:03 UTC 2025

Dependencies

cartopy
0.25.0
decorator
5.2.1
flake8
---
geographiclib
2.1
lxml
6.0.1
matplotlib
3.10.6
numpy
2.3.2
obspy
1.4.2.post0+356.g283a0368fa
pyproj
3.7.2
pytest
8.4.1
pytest-json-report
1.5.0
requests
2.32.5
scipy
1.16.1
setuptools
80.9.0
shapefile
---
sqlalchemy
1.4.54

Modules (61)

Module Errors / Failures Tracebacks
obspy.clients.earthworm Not tested -
obspy.clients.fdsn - -
obspy.clients.filesystem - -
obspy.clients.iris Not tested -
obspy.clients.neic Not tested -
obspy.clients.nrl - -
obspy.clients.seedlink - -
obspy.clients.syngine Not tested -
obspy.core - -
obspy.core.event - -
obspy.core.inventory - -
obspy.core.util - -
obspy.geodetics - -
obspy.imaging - -
obspy.io.ah - -
obspy.io.alsep - -
obspy.io.arclink - -
obspy.io.ascii - -
obspy.io.cmtsolution - -
obspy.io.cnv - -
obspy.io.css - -
obspy.io.csv - -
obspy.io.cybershake - -
obspy.io.dmx - -
obspy.io.focmec - -
obspy.io.gcf - -
obspy.io.gse2 - -
obspy.io.hypodd - -
obspy.io.iaspei - -
obspy.io.json - -
obspy.io.kinemetrics - -
obspy.io.kml - -
obspy.io.mseed - -
obspy.io.ndk - -
obspy.io.nied - -
obspy.io.nlloc - -
obspy.io.nordic - -
obspy.io.pdas - -
obspy.io.pde - -
obspy.io.quakeml - -
obspy.io.reftek - -
obspy.io.rg16 - -
obspy.io.sac - -
obspy.io.scardec - -
obspy.io.seg2 - -
obspy.io.segy - -
obspy.io.seisan - -
obspy.io.seiscomp - -
obspy.io.sh - -
obspy.io.shapefile 6 1 2 3 4 5 6
obspy.io.stationtxt - -
obspy.io.stationxml 1 7
obspy.io.wav - -
obspy.io.win - -
obspy.io.xseed - -
obspy.io.y - -
obspy.io.zmap - -
obspy.realtime - -
obspy.scripts - -
obspy.signal - -
obspy.taup - -
Summary 7 7

Tracebacks (7)

Traceback (most recent call last):
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 344, in from_call
result: TResult | None = func()
^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 246, in <lambda>
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
yield
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
return result.get_result()
^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_result.py", line 103, in get_result
raise exc.with_traceback(tb)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
res = yield
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call
return (yield)
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
return result.get_result()
^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_result.py", line 103, in get_result
raise exc.with_traceback(tb)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
res = yield
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call
return (yield)
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 178, in pytest_runtest_call
item.runtest()
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/python.py", line 1671, in runtest
self.ihook.pytest_pyfunc_call(pyfuncitem=self)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call
result = testfunction(**testargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/tests/test_core.py", line 185, in test_write_catalog_shapefile
_write_shapefile(cat, "catalog.shp")
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 76, in _write_shapefile
_add_catalog_layer(writer, obj, extra_fields=extra_fields)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 126, in _add_catalog_layer
_create_layer(writer, field_definitions, extra_fields)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 339, in _create_layer
_add_field(writer, name, type_, width, precision)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 333, in _add_field
writer.field(name, **kwargs)
TypeError: Writer.field() got an unexpected keyword argument 'fieldType'
Traceback (most recent call last):
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 344, in from_call
result: TResult | None = func()
^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 246, in <lambda>
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
yield
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
return result.get_result()
^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_result.py", line 103, in get_result
raise exc.with_traceback(tb)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
res = yield
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call
return (yield)
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
return result.get_result()
^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_result.py", line 103, in get_result
raise exc.with_traceback(tb)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
res = yield
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call
return (yield)
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 178, in pytest_runtest_call
item.runtest()
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/python.py", line 1671, in runtest
self.ihook.pytest_pyfunc_call(pyfuncitem=self)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call
result = testfunction(**testargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/tests/test_core.py", line 232, in test_write_catalog_shapefile_with_extra_field
_write_shapefile(
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 76, in _write_shapefile
_add_catalog_layer(writer, obj, extra_fields=extra_fields)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 126, in _add_catalog_layer
_create_layer(writer, field_definitions, extra_fields)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 339, in _create_layer
_add_field(writer, name, type_, width, precision)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 333, in _add_field
writer.field(name, **kwargs)
TypeError: Writer.field() got an unexpected keyword argument 'fieldType'+ Exception Group Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 344, in from_call
| result: TResult | None = func()
| ^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 246, in <lambda>
| lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_hooks.py", line 512, in __call__
| return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
| return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
| raise exception
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
| teardown.throw(exception)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/logging.py", line 858, in pytest_runtest_teardown
| yield
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
| teardown.throw(exception)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/capture.py", line 905, in pytest_runtest_teardown
| return (yield)
| ^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
| teardown.throw(exception)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
| return result.get_result()
| ^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_result.py", line 103, in get_result
| raise exc.with_traceback(tb)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
| res = yield
| ^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 121, in _multicall
| res = hook_impl.function(*args)
| ^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 163, in pytest_runtest_teardown
| collect_unraisable(item.config)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 81, in collect_unraisable
| raise ExceptionGroup("multiple unraisable exception warnings", errors)
| ExceptionGroup: multiple unraisable exception warnings (4 sub-exceptions)
+-+---------------- 1 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/uuid.py", line 139, in __init__
| def __init__(self, hex=None, bytes=None, bytes_le=None, fields=None,
|
| ResourceWarning: unclosed file <_io.FileIO name='catalog.dbf' mode='rb+' closefd=True>
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO name='catalog.dbf' mode='rb+' closefd=True>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+---------------- 2 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/uuid.py", line 139, in __init__
| def __init__(self, hex=None, bytes=None, bytes_le=None, fields=None,
|
| ResourceWarning: unclosed file <_io.FileIO name='catalog.shx' mode='rb+' closefd=True>
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO name='catalog.shx' mode='rb+' closefd=True>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+---------------- 3 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/uuid.py", line 139, in __init__
| def __init__(self, hex=None, bytes=None, bytes_le=None, fields=None,
|
| ResourceWarning: unclosed file <_io.FileIO name='catalog.shp' mode='rb+' closefd=True>
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO name='catalog.shp' mode='rb+' closefd=True>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+---------------- 4 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/shapefile.py", line 3319, in __del__
| self.close()
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/shapefile.py", line 3348, in close
| self.__dbfHeader()
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/shapefile.py", line 3552, in __dbfHeader
| raise ShapefileException(
| shapefile.ShapefileException: Shapefile dbf file must contain at least one field.
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <function Writer.__del__ at 0x7f256409e7a0>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+------------------------------------
Traceback (most recent call last):
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 344, in from_call
result: TResult | None = func()
^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 246, in <lambda>
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
yield
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
return result.get_result()
^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_result.py", line 103, in get_result
raise exc.with_traceback(tb)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
res = yield
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call
return (yield)
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
return result.get_result()
^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_result.py", line 103, in get_result
raise exc.with_traceback(tb)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
res = yield
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call
return (yield)
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 178, in pytest_runtest_call
item.runtest()
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/python.py", line 1671, in runtest
self.ihook.pytest_pyfunc_call(pyfuncitem=self)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call
result = testfunction(**testargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/tests/test_core.py", line 292, in test_write_inventory_shapefile_with_extra_field
_write_shapefile(
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 78, in _write_shapefile
_add_inventory_layer(writer, obj, extra_fields=extra_fields)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 238, in _add_inventory_layer
_create_layer(writer, field_definitions, extra_fields)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 339, in _create_layer
_add_field(writer, name, type_, width, precision)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 333, in _add_field
writer.field(name, **kwargs)
TypeError: Writer.field() got an unexpected keyword argument 'fieldType'+ Exception Group Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 344, in from_call
| result: TResult | None = func()
| ^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 246, in <lambda>
| lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_hooks.py", line 512, in __call__
| return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
| return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
| raise exception
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
| teardown.throw(exception)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/logging.py", line 858, in pytest_runtest_teardown
| yield
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
| teardown.throw(exception)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/capture.py", line 905, in pytest_runtest_teardown
| return (yield)
| ^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
| teardown.throw(exception)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
| return result.get_result()
| ^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_result.py", line 103, in get_result
| raise exc.with_traceback(tb)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
| res = yield
| ^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 121, in _multicall
| res = hook_impl.function(*args)
| ^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 163, in pytest_runtest_teardown
| collect_unraisable(item.config)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 81, in collect_unraisable
| raise ExceptionGroup("multiple unraisable exception warnings", errors)
| ExceptionGroup: multiple unraisable exception warnings (4 sub-exceptions)
+-+---------------- 1 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/core/util/obspy_types.py", line 208, in __new__
| return super(CustomFloat, cls).__new__(cls, *args)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| ResourceWarning: unclosed file <_io.BufferedRandom name='catalog.dbf'>
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO name='catalog.dbf' mode='rb+' closefd=True>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+---------------- 2 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/core/util/obspy_types.py", line 208, in __new__
| return super(CustomFloat, cls).__new__(cls, *args)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| ResourceWarning: unclosed file <_io.BufferedRandom name='catalog.shx'>
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO name='catalog.shx' mode='rb+' closefd=True>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+---------------- 3 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/core/util/obspy_types.py", line 208, in __new__
| return super(CustomFloat, cls).__new__(cls, *args)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| ResourceWarning: unclosed file <_io.BufferedRandom name='catalog.shp'>
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO name='catalog.shp' mode='rb+' closefd=True>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+---------------- 4 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/shapefile.py", line 3319, in __del__
| self.close()
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/shapefile.py", line 3348, in close
| self.__dbfHeader()
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/shapefile.py", line 3552, in __dbfHeader
| raise ShapefileException(
| shapefile.ShapefileException: Shapefile dbf file must contain at least one field.
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <function Writer.__del__ at 0x7f256409e7a0>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+------------------------------------
Traceback (most recent call last):
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 344, in from_call
result: TResult | None = func()
^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 246, in <lambda>
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
yield
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
return result.get_result()
^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_result.py", line 103, in get_result
raise exc.with_traceback(tb)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
res = yield
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call
return (yield)
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
return result.get_result()
^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_result.py", line 103, in get_result
raise exc.with_traceback(tb)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
res = yield
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call
return (yield)
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 178, in pytest_runtest_call
item.runtest()
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/python.py", line 1671, in runtest
self.ihook.pytest_pyfunc_call(pyfuncitem=self)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call
result = testfunction(**testargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/tests/test_core.py", line 331, in test_write_catalog_shapefile_via_plugin
cat.write("catalog.shp", "SHAPEFILE")
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/core/event/catalog.py", line 506, in write
return write_format(self, filename, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 76, in _write_shapefile
_add_catalog_layer(writer, obj, extra_fields=extra_fields)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 126, in _add_catalog_layer
_create_layer(writer, field_definitions, extra_fields)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 339, in _create_layer
_add_field(writer, name, type_, width, precision)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 333, in _add_field
writer.field(name, **kwargs)
TypeError: Writer.field() got an unexpected keyword argument 'fieldType'+ Exception Group Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 344, in from_call
| result: TResult | None = func()
| ^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 246, in <lambda>
| lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_hooks.py", line 512, in __call__
| return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
| return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
| raise exception
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
| teardown.throw(exception)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/logging.py", line 858, in pytest_runtest_teardown
| yield
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
| teardown.throw(exception)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/capture.py", line 905, in pytest_runtest_teardown
| return (yield)
| ^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
| teardown.throw(exception)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
| return result.get_result()
| ^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_result.py", line 103, in get_result
| raise exc.with_traceback(tb)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
| res = yield
| ^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 121, in _multicall
| res = hook_impl.function(*args)
| ^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 163, in pytest_runtest_teardown
| collect_unraisable(item.config)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 81, in collect_unraisable
| raise ExceptionGroup("multiple unraisable exception warnings", errors)
| ExceptionGroup: multiple unraisable exception warnings (4 sub-exceptions)
+-+---------------- 1 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/weakref.py", line 152, in __contains__
| def __contains__(self, key):
|
| ResourceWarning: unclosed file <_io.BufferedRandom name='inventory.dbf'>
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO name='inventory.dbf' mode='rb+' closefd=True>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+---------------- 2 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/weakref.py", line 152, in __contains__
| def __contains__(self, key):
|
| ResourceWarning: unclosed file <_io.BufferedRandom name='inventory.shx'>
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO name='inventory.shx' mode='rb+' closefd=True>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+---------------- 3 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/weakref.py", line 152, in __contains__
| def __contains__(self, key):
|
| ResourceWarning: unclosed file <_io.BufferedRandom name='inventory.shp'>
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO name='inventory.shp' mode='rb+' closefd=True>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+---------------- 4 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/shapefile.py", line 3319, in __del__
| self.close()
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/shapefile.py", line 3348, in close
| self.__dbfHeader()
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/shapefile.py", line 3552, in __dbfHeader
| raise ShapefileException(
| shapefile.ShapefileException: Shapefile dbf file must contain at least one field.
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <function Writer.__del__ at 0x7f256409e7a0>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+------------------------------------
Traceback (most recent call last):
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 344, in from_call
result: TResult | None = func()
^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 246, in <lambda>
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
yield
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
return result.get_result()
^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_result.py", line 103, in get_result
raise exc.with_traceback(tb)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
res = yield
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call
return (yield)
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
return result.get_result()
^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_result.py", line 103, in get_result
raise exc.with_traceback(tb)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
res = yield
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call
return (yield)
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 178, in pytest_runtest_call
item.runtest()
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/python.py", line 1671, in runtest
self.ihook.pytest_pyfunc_call(pyfuncitem=self)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call
result = testfunction(**testargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/tests/test_core.py", line 364, in test_write_inventory_shapefile
_write_shapefile(inv, "inventory.shp")
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 78, in _write_shapefile
_add_inventory_layer(writer, obj, extra_fields=extra_fields)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 238, in _add_inventory_layer
_create_layer(writer, field_definitions, extra_fields)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 339, in _create_layer
_add_field(writer, name, type_, width, precision)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 333, in _add_field
writer.field(name, **kwargs)
TypeError: Writer.field() got an unexpected keyword argument 'fieldType'+ Exception Group Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 344, in from_call
| result: TResult | None = func()
| ^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 246, in <lambda>
| lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_hooks.py", line 512, in __call__
| return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
| return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
| raise exception
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
| teardown.throw(exception)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/logging.py", line 858, in pytest_runtest_teardown
| yield
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
| teardown.throw(exception)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/capture.py", line 905, in pytest_runtest_teardown
| return (yield)
| ^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
| teardown.throw(exception)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
| return result.get_result()
| ^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_result.py", line 103, in get_result
| raise exc.with_traceback(tb)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
| res = yield
| ^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 121, in _multicall
| res = hook_impl.function(*args)
| ^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 163, in pytest_runtest_teardown
| collect_unraisable(item.config)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 81, in collect_unraisable
| raise ExceptionGroup("multiple unraisable exception warnings", errors)
| ExceptionGroup: multiple unraisable exception warnings (4 sub-exceptions)
+-+---------------- 1 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/stationxml/core.py", line 1611, in _tag2obj
| text = element.find(tag).text
| ^^^^^^^^^^^^^^^^^
| ResourceWarning: unclosed file <_io.FileIO name='catalog.dbf' mode='rb+' closefd=True>
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO name='catalog.dbf' mode='rb+' closefd=True>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+---------------- 2 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/stationxml/core.py", line 1611, in _tag2obj
| text = element.find(tag).text
| ^^^^^^^^^^^^^^^^^
| ResourceWarning: unclosed file <_io.FileIO name='catalog.shx' mode='rb+' closefd=True>
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO name='catalog.shx' mode='rb+' closefd=True>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+---------------- 3 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/stationxml/core.py", line 1611, in _tag2obj
| text = element.find(tag).text
| ^^^^^^^^^^^^^^^^^
| ResourceWarning: unclosed file <_io.FileIO name='catalog.shp' mode='rb+' closefd=True>
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO name='catalog.shp' mode='rb+' closefd=True>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+---------------- 4 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/shapefile.py", line 3319, in __del__
| self.close()
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/shapefile.py", line 3348, in close
| self.__dbfHeader()
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/shapefile.py", line 3552, in __dbfHeader
| raise ShapefileException(
| shapefile.ShapefileException: Shapefile dbf file must contain at least one field.
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <function Writer.__del__ at 0x7f256409e7a0>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+------------------------------------
Traceback (most recent call last):
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 344, in from_call
result: TResult | None = func()
^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 246, in <lambda>
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
yield
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
return result.get_result()
^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_result.py", line 103, in get_result
raise exc.with_traceback(tb)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
res = yield
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call
return (yield)
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
return result.get_result()
^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_result.py", line 103, in get_result
raise exc.with_traceback(tb)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
res = yield
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call
return (yield)
^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 178, in pytest_runtest_call
item.runtest()
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/python.py", line 1671, in runtest
self.ihook.pytest_pyfunc_call(pyfuncitem=self)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call
result = testfunction(**testargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/tests/test_core.py", line 393, in test_write_inventory_shapefile_via_plugin
inv.write("inventory.shp", "SHAPEFILE")
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/core/inventory/inventory.py", line 372, in write
return write_format(self, path_or_file_object, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 78, in _write_shapefile
_add_inventory_layer(writer, obj, extra_fields=extra_fields)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 238, in _add_inventory_layer
_create_layer(writer, field_definitions, extra_fields)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 339, in _create_layer
_add_field(writer, name, type_, width, precision)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/shapefile/core.py", line 333, in _add_field
writer.field(name, **kwargs)
TypeError: Writer.field() got an unexpected keyword argument 'fieldType'+ Exception Group Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 344, in from_call
| result: TResult | None = func()
| ^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 246, in <lambda>
| lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_hooks.py", line 512, in __call__
| return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
| return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
| raise exception
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
| teardown.throw(exception)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/logging.py", line 858, in pytest_runtest_teardown
| yield
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
| teardown.throw(exception)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/capture.py", line 905, in pytest_runtest_teardown
| return (yield)
| ^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
| teardown.throw(exception)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
| return result.get_result()
| ^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_result.py", line 103, in get_result
| raise exc.with_traceback(tb)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
| res = yield
| ^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 121, in _multicall
| res = hook_impl.function(*args)
| ^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 163, in pytest_runtest_teardown
| collect_unraisable(item.config)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 81, in collect_unraisable
| raise ExceptionGroup("multiple unraisable exception warnings", errors)
| ExceptionGroup: multiple unraisable exception warnings (4 sub-exceptions)
+-+---------------- 1 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/coverage/collector.py", line 254, in lock_data
| def lock_data(self) -> None:
|
| ResourceWarning: unclosed file <_io.BufferedRandom name='inventory.dbf'>
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO name='inventory.dbf' mode='rb+' closefd=True>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+---------------- 2 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/coverage/collector.py", line 254, in lock_data
| def lock_data(self) -> None:
|
| ResourceWarning: unclosed file <_io.BufferedRandom name='inventory.shx'>
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO name='inventory.shx' mode='rb+' closefd=True>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+---------------- 3 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/coverage/collector.py", line 254, in lock_data
| def lock_data(self) -> None:
|
| ResourceWarning: unclosed file <_io.BufferedRandom name='inventory.shp'>
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO name='inventory.shp' mode='rb+' closefd=True>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+---------------- 4 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/shapefile.py", line 3319, in __del__
| self.close()
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/shapefile.py", line 3348, in close
| self.__dbfHeader()
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/shapefile.py", line 3552, in __dbfHeader
| raise ShapefileException(
| shapefile.ShapefileException: Shapefile dbf file must contain at least one field.
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <function Writer.__del__ at 0x7f256409e7a0>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+------------------------------------
+ Exception Group Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 344, in from_call
| result: TResult | None = func()
| ^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/runner.py", line 246, in <lambda>
| lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_hooks.py", line 512, in __call__
| return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
| return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
| raise exception
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
| teardown.throw(exception)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
| yield
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
| teardown.throw(exception)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
| return result.get_result()
| ^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_result.py", line 103, in get_result
| raise exc.with_traceback(tb)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
| res = yield
| ^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
| teardown.throw(exception)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call
| return (yield)
| ^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
| teardown.throw(exception)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
| return result.get_result()
| ^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_result.py", line 103, in get_result
| raise exc.with_traceback(tb)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
| res = yield
| ^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
| teardown.throw(exception)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call
| return (yield)
| ^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/pluggy/_callers.py", line 121, in _multicall
| res = hook_impl.function(*args)
| ^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 158, in pytest_runtest_call
| collect_unraisable(item.config)
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 81, in collect_unraisable
| raise ExceptionGroup("multiple unraisable exception warnings", errors)
| ExceptionGroup: multiple unraisable exception warnings (4 sub-exceptions)
+-+---------------- 1 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/stationxml/core.py", line 590, in _tag2pole_or_zero
| real = _attr2obj(element.find(_ns("Real")), "minusError", float)
| ^^^^^^^^^^^^^^^^^^^^^^^^^
| ResourceWarning: unclosed file <_io.BufferedRandom name='inventory.dbf'>
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO name='inventory.dbf' mode='rb+' closefd=True>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+---------------- 2 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/stationxml/core.py", line 590, in _tag2pole_or_zero
| real = _attr2obj(element.find(_ns("Real")), "minusError", float)
| ^^^^^^^^^^^^^^^^^^^^^^^^^
| ResourceWarning: unclosed file <_io.BufferedRandom name='inventory.shx'>
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO name='inventory.shx' mode='rb+' closefd=True>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+---------------- 3 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/obspy/io/stationxml/core.py", line 590, in _tag2pole_or_zero
| real = _attr2obj(element.find(_ns("Real")), "minusError", float)
| ^^^^^^^^^^^^^^^^^^^^^^^^^
| ResourceWarning: unclosed file <_io.BufferedRandom name='inventory.shp'>
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO name='inventory.shp' mode='rb+' closefd=True>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+---------------- 4 ----------------
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/shapefile.py", line 3319, in __del__
| self.close()
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/shapefile.py", line 3348, in close
| self.__dbfHeader()
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/shapefile.py", line 3552, in __dbfHeader
| raise ShapefileException(
| shapefile.ShapefileException: Shapefile dbf file must contain at least one field.
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
| warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
| pytest.PytestUnraisableExceptionWarning: Exception ignored in: <function Writer.__del__ at 0x7f256409e7a0>
| Enable tracemalloc to get traceback where the object was allocated.
| See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
+------------------------------------

Skipped tests (20)

Submodule Test Skip message
core core/stream.py::obspy.core.stream._is_pickle Skipped: all tests skipped by +SKIP option
core.util core/util/misc.py::obspy.core.util.misc.CatchOutput Skipped: all tests skipped by +SKIP option
core.util core/util/misc.py::obspy.core.util.misc.SuppressOutput Skipped: all tests skipped by +SKIP option
core.util core/util/misc.py::obspy.core.util.misc.TemporaryWorkingDirectory Skipped: all tests skipped by +SKIP option
geodetics geodetics/tests/test_util_geodetics.py::TestUtilGeodetics::test_gps_2_dist_azimuth_bug150 Skipped: Geographiclib installed, not using calc_vincenty_inverse
imaging imaging/tests/test_mopad_script.py::TestMopad::test_script_plot Skipped: Currently broken until further review.
io.ascii io/ascii/core.py::obspy.io.ascii.core._is_slist Skipped: all tests skipped by +SKIP option
io.ascii io/ascii/core.py::obspy.io.ascii.core._is_tspair Skipped: all tests skipped by +SKIP option
io.gcf io/gcf/core.py::obspy.io.gcf.core._write_gcf Skipped: all tests skipped by +SKIP option
io.nordic io/nordic/utils.py::obspy.io.nordic.utils._evmagtonor Skipped: all tests skipped by +SKIP option
io.nordic io/nordic/utils.py::obspy.io.nordic.utils._nortoevmag Skipped: all tests skipped by +SKIP option
io.pde io/pde/mchedr.py::obspy.io.pde.mchedr._is_mchedr Skipped: all tests skipped by +SKIP option
io.quakeml io/quakeml/core.py::obspy.io.quakeml.core._is_quakeml Skipped: all tests skipped by +SKIP option
io.seisan io/seisan/core.py::obspy.io.seisan.core._is_seisan Skipped: all tests skipped by +SKIP option
io.sh io/sh/core.py::obspy.io.sh.core._is_asc Skipped: all tests skipped by +SKIP option
io.sh io/sh/core.py::obspy.io.sh.core._is_q Skipped: all tests skipped by +SKIP option
io.wav io/wav/core.py::obspy.io.wav.core._is_wav Skipped: all tests skipped by +SKIP option
io.y io/y/core.py::obspy.io.y.core._is_y Skipped: all tests skipped by +SKIP option
signal signal/quality_control.py::obspy.signal.quality_control.MSEEDMetadata Skipped: all tests skipped by +SKIP option
signal signal/tests/test_quality_control.py::TestQualityControl::test_schema_validation Skipped: Test requires the jsonschema module

Slowest tests (20)

Runtime Test
15.053s io/xseed/tests/test_core.py::TestCore::test_response_calculation_from_seed_and_xseed
5.704s io/arclink/tests/test_inventory_xml.py::TestArclinkInventory::test_auto_read_arclink_xml
5.671s core/tests/test_event.py::TestEvent::test_plot_farfield_without_quiver_with_maps
4.626s taup/tests/test_seismic_phase.py::TestTauPySeismicPhase::test_shoot_existing_ray_param
4.544s taup/tests/test_tau.py::TestTauPyModel::test_regional_models
4.431s taup/__init__.py::obspy.taup
3.205s core/stream.py::obspy.core.stream.read
2.641s taup/tests/test_tau.py::TestTauPyModel::test_vs_java_iasp91
2.301s signal/tests/test_spectral_estimation.py::TestPsd::test_ppsd_restricted_stacks
2.111s core/tests/test_trace.py::TestTrace::test_remove_response_plot
2.097s core/tests/test_inventory.py::TestInventoryCartopy::test_location_plot_local
2.096s signal/tests/test_calibration.py::TestCalibration::test_relcal_different_overlaps
2.081s taup/tests/test_velocity_model.py::TestTauPyVelocityModel::test_read_velocity_model
1.804s taup/tests/test_seismic_phase.py::TestTauPySeismicPhase::test_many_identically_named_phases
1.716s signal/tests/test_cross_correlation.py::TestCrossCorrelation::test_correlate_stream_template_and_correlation_detector
1.529s core/tests/test_inventory.py::TestInventoryCartopy::test_location_plot_global
1.432s imaging/tests/test_ppsd.py::TestPPSD::test_ppsd_plot
1.411s taup/tests/test_taup_plotting.py::TestTauPyPlotting::test_spherical_many_phases
1.362s signal/tests/test_polarization.py::TestPolarization::test_polarization_vidale
1.306s signal/tests/test_interpolation.py::TestInterpolation::test_plot_lanczos_window