Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / django / django_5_disable_failing_tests.patch
blobdd4b3f6ac72a0ff6a7400a08201e092950ba1ea4
1 diff --git a/tests/settings_tests/tests.py b/tests/settings_tests/tests.py
2 index b204487..243f060 100644
3 --- a/tests/settings_tests/tests.py
4 +++ b/tests/settings_tests/tests.py
5 @@ -2,7 +2,7 @@ import os
6 import sys
7 import unittest
8 from types import ModuleType, SimpleNamespace
9 -from unittest import mock
10 +from unittest import mock, skip
12 from django.conf import ENVIRONMENT_VARIABLE, LazySettings, Settings, settings
13 from django.core.exceptions import ImproperlyConfigured
14 @@ -335,6 +335,7 @@ class SettingsTests(SimpleTestCase):
15 getattr(s, "foo")
17 @requires_tz_support
18 + @skip("Assertion fails, exception does not get raised")
19 @mock.patch("django.conf.global_settings.TIME_ZONE", "test")
20 def test_incorrect_timezone(self):
21 with self.assertRaisesMessage(ValueError, "Incorrect timezone setting: test"):