← All tasks
pythonjupyter-server/jupyter_server #1475Not a task: not reproduced

Lots of test errors with Python 3.13

envgap__jupyter-server__jupyter_server-1475

01 / FAILURE SIGNATURE

As reported upstream

228s E   KeyError: b'COLUMNS'
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
dff1599d490a0a1ee70327a2ce0dde80b473907d
Manifest
pyproject.toml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

jupyter-server/jupyter_server #1475 · read the original issue
<!-- Thank you for contributing. These HTML comments will not render in the issue, but you can delete them once you've read them if you prefer! -->



<!-- Before creating a new issue, please search for relevant issues.

-->



## Description



I'm packaging jupyter-server for Debian, and we've just run the tests with Python 3.13.  Unfortunately many of them gave errors, all with a ResourceWarning.  Here are two examples of such errors; attached is a full log (only the start of the error is shown here).



```

228s _ ERROR at setup of test_authorized_requests[True-POST-/api/sessions-{"path": "foo", "type": "bar"}] _

228s 

228s >       lambda: ihook(item=item, **kwds), when=when, reraise=reraise

228s     )

228s E   pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7fc6b6048310>

228s E   

228s E   Traceback (most recent call last):

228s E     File "<frozen os>", line 713, in __getitem__

228s E   KeyError: b'COLUMNS'

228s E   

228s E   During handling of the above exception, another exception occurred:

228s E   

228s E   Traceback (most recent call last):

228s E     File "<frozen os>", line 716, in __getitem__

228s E   ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7fc6b6048310>

228s 

228s ihook      = <HookCaller 'pytest_runtest_setup'>

228s item       = <Function test_authorized_requests[True-POST-/api/sessions-{"path": "foo", "type": "bar"}]>

228s kwds       = {}

228s 

228s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: PytestUnraisableExceptionWarning

```

and

```

228s _ ERROR at setup of test_get_nb_contents[FileContentsManager-unicod\xe9-innonascii] _

228s 

228s >       lambda: ihook(item=item, **kwds), when=when, reraise=reraise

228s     )

228s E   pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7fc6b670d4e0>

228s E   

228s E   Traceback (most recent call last):

228s E     File "/usr/lib/python3/dist-packages/yaml/resolver.py", line 143, in resolve

228s E       def resolve(self, kind, value, implicit):

228s E       

228s E   ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7fc6b670d4e0>

228s 

228s ihook      = <HookCaller 'pytest_runtest_setup'>

228s item       = <Function test_get_nb_contents[FileContentsManager-unicod\xe9-innonascii]>

228s kwds       = {}

228s 

228s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: PytestUnraisableExceptionWarning

```

<!--Complete the following for context, and add any other relevant context-->



- Operating System and version: Debian testing with python3-defaults from unstable (supporting Python 3.13)

- Browser and version: N/A

- Jupyter Server version: 2.14.2
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]