Hi Skyler.

Welcome.

That’ll be your SQLite version.

MacOS tends to bundle an old one — and updating can be a little tricky
because of the “System integrity protection”, not letting you specify a
DYLD_LIBRARY_PATH.

See the instructions here for getting a newer SQLite version:

https://code.djangoproject.com/wiki/JSON1Extension

It might not work because of SIP.

Try this:

~ $ DYLD_LIBRARY_PATH="testing" python -c "import os;
print(os.getenv('DYLD_LIBRARY_PATH'))"
None

If you get that your Python is running via SIP. You’ll need to install
Python in your home folder somewhere.

I use pyenv but the shims that use still go view /bin/env, so SIP is in
play.

You have to do this kind of thing:

~ $ DYLD_LIBRARY_PATH="testing" $(pyenv which python) -c "import os;
print(os.getenv('DYLD_LIBRARY_PATH'))"
testing

Hopefully that makes sense and helps. If not reply and I’ll see if I can
help some more.

You can always ignore the failure, or use Postgres:
https://postgresapp.com is a very easy to get going with.

Kind regards, Carlton

On Tue, 12 Jan 2021 at 16:50, Skyler Cain <skylerc...@gmail.com> wrote:

> Hello all!
>
> I've read this: https://docs.djangoproject.com/en/3.1/intro/contributing/
>
> But after running my tests I get the following failure (when running all
> or individual). Any thoughts / suggestions would be much appreciated.
>
> (django) skylercain:~/code/django/tests [master]$ ./runtests.py
> schema.tests.SchemaTests.test_db_table
> Testing against Django installed in '/Users/skylercain/code/django/django'
> Creating test database for alias 'default'...
> System check identified no issues (0 silenced).
> F
> ======================================================================
> FAIL: test_db_table (schema.tests.SchemaTests)
> Tests renaming of the table
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Users/skylercain/code/django/django/test/utils.py", line 382, in
> inner
>     return func(*args, **kwargs)
>   File "/Users/skylercain/code/django/tests/schema/tests.py", line 2339,
> in test_db_table
>     self.assertForeignKeyExists(Book, "author_id", "schema_otherauthor")
>   File "/Users/skylercain/code/django/tests/schema/tests.py", line 213, in
> assertForeignKeyExists
>     self.assertEqual(constraint_fk, (expected_fk_table, field))
> AssertionError: Tuples differ: ('schema_author', 'id') !=
> ('schema_otherauthor', 'id')
>
> First differing element 0:
> 'schema_author'
> 'schema_otherauthor'
>
> - ('schema_author', 'id')
> + ('schema_otherauthor', 'id')
> ?          +++++
>
>
> ----------------------------------------------------------------------
> Ran 1 test in 0.015s
>
> FAILED (failures=1)
> Destroying test database for alias 'default'...
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/75e140c4-facf-456f-8605-80a72662cf03n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/75e140c4-facf-456f-8605-80a72662cf03n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAJwKpyQh32UYkxAHma-wRY3WhY36oiuWjhmLCGLm4%2BxGHAgvRQ%40mail.gmail.com.

Reply via email to