Skip to content

Read only tables tests fail on Python 3.11 #3

@simonw

Description

@simonw

Test failures:

platform darwin -- Python 3.11.6, pytest-7.4.3, pluggy-1.3.0
rootdir: /Users/simon/Dropbox/Development/datasette-sqlite-authorizer
configfile: pyproject.toml
plugins: asyncio-0.23.2, anyio-4.1.0
asyncio: mode=Mode.STRICT
collected 24 items                                                                                                                                          

tests/test_sqlite_authorizer.py FF.FFF......FF.FFF......                                                                                              [100%]

...

================================================================== short test summary info ==================================================================
FAILED tests/test_sqlite_authorizer.py::test_read_only_tables[None-True-delete from protected] - Failed: DID NOT RAISE <class 'Exception'>
FAILED tests/test_sqlite_authorizer.py::test_read_only_tables[None-True-delete from protected where id = 1] - Failed: DID NOT RAISE <class 'Exception'>
FAILED tests/test_sqlite_authorizer.py::test_read_only_tables[None-True-drop table protected] - Failed: DID NOT RAISE <class 'Exception'>
FAILED tests/test_sqlite_authorizer.py::test_read_only_tables[None-True-insert into protected (name) values ('two')] - Failed: DID NOT RAISE <class 'Exception'>
FAILED tests/test_sqlite_authorizer.py::test_read_only_tables[None-True-alter table protected rename to protected2] - Failed: DID NOT RAISE <class 'Exception'>
FAILED tests/test_sqlite_authorizer.py::test_read_only_tables[test1-True-delete from protected] - Failed: DID NOT RAISE <class 'Exception'>
FAILED tests/test_sqlite_authorizer.py::test_read_only_tables[test1-True-delete from protected where id = 1] - Failed: DID NOT RAISE <class 'Exception'>
FAILED tests/test_sqlite_authorizer.py::test_read_only_tables[test1-True-drop table protected] - Failed: DID NOT RAISE <class 'Exception'>
FAILED tests/test_sqlite_authorizer.py::test_read_only_tables[test1-True-insert into protected (name) values ('two')] - Failed: DID NOT RAISE <class 'Exception'>
FAILED tests/test_sqlite_authorizer.py::test_read_only_tables[test1-True-alter table protected rename to protected2] - Failed: DID NOT RAISE <class 'Exception'>
========================================================= 10 failed, 14 passed, 1 warning in 0.27s ==========================================================

Originally posted by @simonw in #2 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions