diff options
author | Hasan Ramezani <hasan.r67@gmail.com> | 2020-04-01 18:46:46 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-04-16 12:55:53 +0200 |
commit | 7b31ba541f1dfb3a8e782b1319c25a24f9d86f8a (patch) | |
tree | 5072dd049da1d1c58b385b47a24210402342f5e3 /tests/logging_tests | |
parent | 96c6f9c61c62af8e2e258642b21351484e61b644 (diff) | |
download | django-7b31ba541f1dfb3a8e782b1319c25a24f9d86f8a.tar.gz |
Fixed #29329 -- Made datetime logging from runserver more consistent.
Setting default_msec_format=None will make it the same, unfortunately
it's not supported by Python, see https://bugs.python.org/issue40300.
Diffstat (limited to 'tests/logging_tests')
-rw-r--r-- | tests/logging_tests/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/logging_tests/tests.py b/tests/logging_tests/tests.py index 1967ca3687..c2e26d5102 100644 --- a/tests/logging_tests/tests.py +++ b/tests/logging_tests/tests.py @@ -605,4 +605,4 @@ class LogFormattersTests(SimpleTestCase): with patch_django_server_logger() as logger_output: logger.info(log_msg) - self.assertRegex(logger_output.getvalue(), r'^\[[-:,.\s\d]+\] %s' % log_msg) + self.assertRegex(logger_output.getvalue(), r'^\[[/:,\w\s\d]+\] %s\n' % log_msg) |