include workaround for macos (#19615)

Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
This commit is contained in:
Neil JohnsonandAndrew Morgan authored and GitHub committed 2026-04-02 13:29:18 +00:00
1 parent cb6989514e
commit 62f23fed27
2 files changed
+16

No files matched your search

+1
View File
@@ -0,0 +1 @@
Include a workaround for running the unit tests with SQLite under recent versions of MacOS.
+15
View File
@@ -309,6 +309,21 @@ works without further arguments).
Your Postgres account needs to be able to create databases; see the postgres
docs for [`ALTER ROLE`](https://www.postgresql.org/docs/current/sql-alterrole.html).
### Running the tests on MacOS
To run the unit tests with SQLite on MacOS you will need to swap out the default MacOS
python interpreter with the homebrew version. This is due to the default using a
locked down version of Python and sqlite3. After installing python from homebrew:
```
poetry env remove --all
poetry env use /opt/homebrew/bin/python3.13
poetry install
poetry run trial tests
```
This example uses python 3.13, but choose whichever version you want.
## Run the integration tests ([Sytest](https://github.com/matrix-org/sytest)).
The integration tests are a more comprehensive suite of tests. They