diff options
| author | Baptiste Mispelon <bmispelon@gmail.com> | 2019-11-22 09:40:49 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-11-22 12:32:30 +0100 |
| commit | 76ec032712d28dd8d4b9ad425f2b330a3e9a9109 (patch) | |
| tree | d805e5e2108dfd8a86beb2f857f389a2854654d2 /tests/utils_tests/test_dateformat.py | |
| parent | 379bf1a2d41494360d86bc3cf8adc482abca5d63 (diff) | |
Refs #26281 -- Added a helpful error message for an invalid "r" specifier to dateformat.format().
Diffstat (limited to 'tests/utils_tests/test_dateformat.py')
| -rw-r--r-- | tests/utils_tests/test_dateformat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils_tests/test_dateformat.py b/tests/utils_tests/test_dateformat.py index bffbcd3ba3..a77395cbf3 100644 --- a/tests/utils_tests/test_dateformat.py +++ b/tests/utils_tests/test_dateformat.py @@ -149,7 +149,7 @@ class DateFormatTests(SimpleTestCase): def test_invalid_time_format_specifiers(self): my_birthday = date(1984, 8, 7) - for specifier in ['a', 'A', 'f', 'g', 'G', 'h', 'H', 'i', 'P', 's', 'u']: + for specifier in ['a', 'A', 'f', 'g', 'G', 'h', 'H', 'i', 'P', 'r', 's', 'u']: msg = ( "The format for date objects may not contain time-related " "format specifiers (found '%s')." % specifier |
