Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions testkit/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ def get_python_version():

def run_python(args, env=None, warning_as_error=True):
cmd = [TEST_BACKEND_VERSION, "-u"]
if get_python_version() >= (3, 12):
# Ignore warnings for Python 3.12 for now
# https://github.com/dateutil/dateutil/issues/1284 needs to be released
# and propagate through our dependency graph
warning_as_error = False
if warning_as_error:
cmd += ["-W", "error"]
cmd += list(args)
Expand Down
6 changes: 1 addition & 5 deletions testkitbackend/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,7 @@ async def main():


if __name__ == "__main__":
if sys.version_info < (3, 12):
# Ignore warnings for Python 3.12 for now
# https://github.com/dateutil/dateutil/issues/1284 needs to be released
# and propagate through our dependency graph
warnings.simplefilter("error")
warnings.simplefilter("error")
if len(sys.argv) == 2 and sys.argv[1].lower().strip() == "async":
async_main()
else:
Expand Down
6 changes: 1 addition & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@ passenv = TEST_NEO4J_*
deps = -r requirements-dev.txt
setenv = COVERAGE_FILE={envdir}/.coverage
usedevelop = true
# Ignore warnings for Python 3.12 for now
# https://github.com/dateutil/dateutil/issues/1284 needs to be released
# and propagate through our dependency graph
warnargs =
py{37,38,39,310,311}: -W error
py312:
py{37,38,39,310,311,312}: -W error
commands =
coverage erase
unit: coverage run -m pytest {[testenv]warnargs} -v {posargs} tests/unit
Expand Down