Title: Some Tests fails with Open Graph Title: Some Tests fails with X Title: Some Tests fails with Description: PyShp Version 3.1.4 Python Version tested with Python 3.12, Python 3.13 and Python 3.14 Your code Running pytest fails if Python 3.12 or Python 3.13 is used as interpreter: The failing tests are: tests/hypothesis_tests.py::test_dbf_reade...
Open Graph Description: PyShp Version 3.1.4 Python Version tested with Python 3.12, Python 3.13 and Python 3.14 Your code Running pytest fails if Python 3.12 or Python 3.13 is used as interpreter: The failing tests are: t...
X Description: PyShp Version 3.1.4 Python Version tested with Python 3.12, Python 3.13 and Python 3.14 Your code Running pytest fails if Python 3.12 or Python 3.13 is used as interpreter: The failing tests are: t...
Opengraph URL: https://github.com/GeospatialPython/pyshp/issues/435
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Some Tests fails with \u003cPython3.14","articleBody":"### PyShp Version\n\n3.1.4\n\n### Python Version\n\ntested with Python 3.12, Python 3.13 and Python 3.14\n\n### Your code\n\n```shell\nRunning pytest fails if Python 3.12 or Python 3.13 is used as interpreter: The failing tests are:\n\n tests/hypothesis_tests.py::test_dbf_reader_writer_roundtrip\n tests/hypothesis_tests.py::test_shapefile_reader_writer_roundtrip\n \nUsing Python 3.14 all tests pass.\n```\n\n### Full stacktrace\n\n```shell\n____________________________________________________ test_dbf_reader_writer_roundtrip _____________________________________________________\n + Exception Group Traceback (most recent call last):\n | File \"/var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4/tests/hypothesis_tests.py\", line 818, in test_dbf_reader_writer_roundtrip\n | @pytest.mark.hypothesis_dbf\n | ^^^\n | File \"/usr/lib/python3.12/site-packages/hypothesis/core.py\", line 2281, in wrapped_test\n | raise the_error_hypothesis_found\n | ExceptionGroup: Hypothesis found 2 distinct failures. (2 sub-exceptions)\n +-+---------------- 1 ----------------\n | Traceback (most recent call last):\n | File \"/var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4/tests/hypothesis_tests.py\", line 829, in test_dbf_reader_writer_roundtrip\n | written_fields, written_records = _write_fields_and_records_to_strict(w, fields, records)\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n | File \"/var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4/tests/hypothesis_tests.py\", line 806, in _write_fields_and_records_to_strict\n | w.record(*rec_list)\n | File \"/var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4-python3_12/install/usr/lib/python3.12/site-packages/shapefile.py\", line 4381, in record\n | self._record(record)\n | File \"/var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4-python3_12/install/usr/lib/python3.12/site-packages/shapefile.py\", line 4441, in _record\n | raise ShapefileException(\n | shapefile.ShapefileException: Could not read as date: 9990101. Date values must be either a datetime.date object, a list, a YYYYMMDD string, or a missing value.\n | Falsifying example: test_dbf_reader_writer_roundtrip(\n | codec_fields_and_records=('shift_jis_2004',\n | [{'name': '0', 'field_type': 'C', 'size': 1, 'decimal': 0},\n | {'name': '0', 'field_type': 'D', 'size': 8, 'decimal': 0}],\n | [('', '9990101')]),\n | )\n | Explanation:\n | These lines were always and only run by failing examples:\n | /var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4-python3_12/install/usr/lib/python3.12/site-packages/shapefile.py:4441\n +---------------- 2 ----------------\n | Traceback (most recent call last):\n | File \"/var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4/tests/hypothesis_tests.py\", line 829, in test_dbf_reader_writer_roundtrip\n | written_fields, written_records = _write_fields_and_records_to_strict(w, fields, records)\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n | File \"/var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4/tests/hypothesis_tests.py\", line 806, in _write_fields_and_records_to_strict\n | w.record(*rec_list)\n | File \"/var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4-python3_12/install/usr/lib/python3.12/site-packages/shapefile.py\", line 4381, in record\n | self._record(record)\n | File \"/var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4-python3_12/install/usr/lib/python3.12/site-packages/shapefile.py\", line 4537, in _record\n | raise ShapefileException(\n | shapefile.ShapefileException: Shapefile Writer unable to pack incorrect sized value=datetime.date(999, 1, 1) (encoded as 7B) into field '0' (8B).\n | Falsifying example: test_dbf_reader_writer_roundtrip(\n | codec_fields_and_records=('shift_jis_2004',\n | [{'name': '0', 'field_type': 'D', 'size': 8, 'decimal': 0}],\n | [(datetime.date(999, 1, 1),)]),\n | )\n | Explanation:\n | These lines were always and only run by failing examples:\n | /var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4-python3_12/install/usr/lib/python3.12/site-packages/shapefile.py:4537\n +------------------------------------\n_________________________________________________ test_shapefile_reader_writer_roundtrip __________________________________________________\n + Exception Group Traceback (most recent call last):\n | File \"/var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4/tests/hypothesis_tests.py\", line 853, in test_shapefile_reader_writer_roundtrip\n | @pytest.mark.hypothesis_dbf\n | ^^^\n | File \"/usr/lib/python3.12/site-packages/hypothesis/core.py\", line 2281, in wrapped_test\n | raise the_error_hypothesis_found\n | ExceptionGroup: Hypothesis found 2 distinct failures. (2 sub-exceptions)\n +-+---------------- 1 ----------------\n | Traceback (most recent call last):\n | File \"/var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4/tests/hypothesis_tests.py\", line 864, in test_shapefile_reader_writer_roundtrip\n | written_fields, written_records = _write_fields_and_records_to_strict(w, fields, records)\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n | File \"/var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4/tests/hypothesis_tests.py\", line 806, in _write_fields_and_records_to_strict\n | w.record(*rec_list)\n | File \"/var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4-python3_12/install/usr/lib/python3.12/site-packages/shapefile.py\", line 4987, in record\n | self.dbf_writer.record(*recordList, **recordDict)\n | File \"/var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4-python3_12/install/usr/lib/python3.12/site-packages/shapefile.py\", line 4381, in record\n | self._record(record)\n | File \"/var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4-python3_12/install/usr/lib/python3.12/site-packages/shapefile.py\", line 4441, in _record\n | raise ShapefileException(\n | shapefile.ShapefileException: Could not read as date: 9990101. Date values must be either a datetime.date object, a list, a YYYYMMDD string, or a missing value.\n | Falsifying example: test_shapefile_reader_writer_roundtrip(\n | codes_codecs_fields_shapes_and_records=(28,\n | 'shift_jis_2004',\n | [{'name': '0', 'field_type': 'C', 'size': 1, 'decimal': 0},\n | {'name': '0', 'field_type': 'C', 'size': 1, 'decimal': 0},\n | {'name': '0', 'field_type': 'C', 'size': 1, 'decimal': 0},\n | {'name': '0', 'field_type': 'C', 'size': 1, 'decimal': 0},\n | {'name': '0', 'field_type': 'D', 'size': 8, 'decimal': 0}],\n | [NullShape #-1],\n | [('', '', '', '', '9990101')]),\n | )\n | Explanation:\n | These lines were always and only run by failing examples:\n | /var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4-python3_12/install/usr/lib/python3.12/site-packages/shapefile.py:4441\n +---------------- 2 ----------------\n | Traceback (most recent call last):\n | File \"/var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4/tests/hypothesis_tests.py\", line 864, in test_shapefile_reader_writer_roundtrip\n | written_fields, written_records = _write_fields_and_records_to_strict(w, fields, records)\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n | File \"/var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4/tests/hypothesis_tests.py\", line 806, in _write_fields_and_records_to_strict\n | w.record(*rec_list)\n | File \"/var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4-python3_12/install/usr/lib/python3.12/site-packages/shapefile.py\", line 4987, in record\n | self.dbf_writer.record(*recordList, **recordDict)\n | File \"/var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4-python3_12/install/usr/lib/python3.12/site-packages/shapefile.py\", line 4381, in record\n | self._record(record)\n | File \"/var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4-python3_12/install/usr/lib/python3.12/site-packages/shapefile.py\", line 4537, in _record\n | raise ShapefileException(\n | shapefile.ShapefileException: Shapefile Writer unable to pack incorrect sized value=datetime.date(999, 1, 1) (encoded as 7B) into field '0' (8B).\n | Falsifying example: test_shapefile_reader_writer_roundtrip(\n | codes_codecs_fields_shapes_and_records=(28,\n | 'shift_jis_2004',\n | [{'name': '0', 'field_type': 'C', 'size': 1, 'decimal': 0},\n | {'name': '0', 'field_type': 'C', 'size': 1, 'decimal': 0},\n | {'name': '0', 'field_type': 'C', 'size': 1, 'decimal': 0},\n | {'name': '0', 'field_type': 'D', 'size': 8, 'decimal': 0}],\n | [NullShape #-1],\n | [('', '', '', datetime.date(999, 1, 1))]),\n | )\n | Explanation:\n | These lines were always and only run by failing examples:\n | /var/tmp/portage/sci-libs/pyshp-3.1.4/work/pyshp-3.1.4-python3_12/install/usr/lib/python3.12/site-packages/shapefile.py:4537\n +------------------------------------\n```\n\n### Other notes\n\n_No response_","author":{"url":"https://github.com/dl1jbe","@type":"Person","name":"dl1jbe"},"datePublished":"2026-07-21T19:51:23Z","url":"https://github.com/GeospatialPython/pyshp/issues/435"}
react-profiling 0 react-import-map react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:25ef38c5-71be-0600-1140-f8cebb655909 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id 8EF4:185321:1B278A:25D0C6:6B006681 html-safe-nonce c74f3786e3d77bbefbca292f3dc9b4b89ce23cad396157fdd620dcce94ba277d visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUY0OjE4NTMyMToxQjI3OEE6MjVEMEM2OjZCMDA2NjgxIiwidmlzaXRvcl9pZCI6IjQyNzg3NTEwNzMyNDM1MjI2ODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac c8263d95c1abed6d22b0c0e0654a59ae728fff2e6cb0fb0ef511dd075065eabd hovercard-subject-tag issue:4942567899 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/GeospatialPython/pyshp/435/issue_layout twitter:image https://opengraph.githubassets.com/5f4e6fbb58311aa40b38771a84d72f90a87df5f35bfb1ad9857bb43d8e5abf9d/GeospatialPython/pyshp/issues/435 twitter:card summary_large_image og:image https://opengraph.githubassets.com/5f4e6fbb58311aa40b38771a84d72f90a87df5f35bfb1ad9857bb43d8e5abf9d/GeospatialPython/pyshp/issues/435 og:image:alt PyShp Version 3.1.4 Python Version tested with Python 3.12, Python 3.13 and Python 3.14 Your code Running pytest fails if Python 3.12 or Python 3.13 is used as interpreter: The failing tests are: t... og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username dl1jbe hostname github.com expected-hostname github.com None 25854482a1773a7c1ebb8be3d2bc1c6e61d82d78126be63b5044474a86d44d9e turbo-cache-control no-preview go-import github.com/GeospatialPython/pyshp git https://github.com/GeospatialPython/pyshp.git octolytics-dimension-user_id 5385450 octolytics-dimension-user_login GeospatialPython octolytics-dimension-repository_id 17410607 octolytics-dimension-repository_nwo GeospatialPython/pyshp octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 17410607 octolytics-dimension-repository_network_root_nwo GeospatialPython/pyshp turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release e4f5c239e31f1f680e6bbc419ff92d774da616ec ui-target full theme-color #1e2327 color-scheme light dark react-app-name issues
URLs of crawlers that visited me.