Test fails with Django 4

#14 · open · 0 comments

View on GitHub ↗

onny

Currently the test fails for me with the following error: ``` python3.12-djangorestframework-jsonp> Running phase: installCheckPhase python3.12-djangorestframework-jsonp> /nix/store/18zlnn80mq1drmprkh0ri0am0i7272pg-python3.12-django-4.2.16/lib/python3.12/site-packages/django/conf/__init__.py:336: RemovedInDjango50Warning: The USE_L10N setting is deprecated. Starting with Django 5.0, localized formatting of data will always be enabled. For example Django will display numbers and dates using the format of the current locale. python3.12-djangorestframework-jsonp> warnings.warn(USE_L10N_DEPRECATED_MSG, RemovedInDjango50Warning) python3.12-djangorestframework-jsonp> ============================= test session starts ============================== python3.12-djangorestframework-jsonp> platform linux -- Python 3.12.6, pytest-8.3.2, pluggy-1.5.0 python3.12-djangorestframework-jsonp> django: version: 4.2.16 python3.12-djangorestframework-jsonp> rootdir: /build/source python3.12-djangorestframework-jsonp> plugins: django-4.8.0 python3.12-djangorestframework-jsonp> collected 0 items / 1 error python3.12-djangorestframework-jsonp> ==================================== ERRORS ==================================== python3.12-djangorestframework-jsonp> ___________________ ERROR collecting tests/test_renderers.py ___________________ python3.12-djangorestframework-jsonp> ImportError while importing test module '/build/source/tests/test_renderers.py'. python3.12-djangorestframework-jsonp> Hint: make sure your test modules/packages have valid Python names. python3.12-djangorestframework-jsonp> Traceback: python3.12-djangorestframework-jsonp> /nix/store/wfbjq35kxs6x83c3ncpfxdyl5gbhdx4h-python3-3.12.6/lib/python3.12/importlib/__init__.py:90: in import_module python3.12-djangorestframework-jsonp> return _bootstrap._gcd_import(name[level:], package, level) python3.12-djangorestframework-jsonp> tests/test_renderers.py:4: in <module> python3.12-djangorestframework-jsonp> from django.conf.urls import patterns, url python3.12-djangorestframework-jsonp> E ImportError: cannot import name 'patterns' from 'django.conf.urls' (/nix/store/18zlnn80mq1drmprkh0ri0am0i7272pg-python3.12-django-4.2.16/lib/python3.12/site-packages/django/conf/urls/__init__.py) python3.12-djangorestframework-jsonp> =========================== short test summary info ============================ python3.12-djangorestframework-jsonp> ERROR tests/test_renderers.py python3.12-djangorestframework-jsonp> !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!! python3.12-djangorestframework-jsonp> =============================== 1 error in 1.33s =============================== ```

Comments