Can not execute tests with spatialite as database backend

I’m using django version 3.1 and libsqlite3-mod-spatialit version 4.3.0a-6 on ubuntu 19.10.
My database backend is spatialite when I run tests I get following error:

Creating test database for alias 'default'...
Destroying old test database for alias 'default'...
python3: ByteOrderValues.cpp:46: static int geos::io::ByteOrderValues::getInt(const unsigned char*, int): Assertion `byteOrder == ENDIAN_LITTLE' failed.
[1]    2019 abort (core dumped)  python3 test

Are you able to run a Python script outside of Django that connects to and uses your database? (This looks like it might be a Python / library issue and not a Django issue.)