diff options
| author | Tim Graham <timograham@gmail.com> | 2015-01-31 14:20:36 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-02-01 20:11:40 -0500 |
| commit | fe770a6452919807bba59c125b02464290feeba1 (patch) | |
| tree | 26c2d2b92b6601adb652f09978ca471d6b3627d8 | |
| parent | c9e538b174e777a1ab51c55913ab8c185414a1ef (diff) | |
[1.8.x] Fixed expressions test on Python 3.5; refs #23763.
Backport of 62df1834b8d60c106c8c16524b275b8a1f47ac3a from master
| -rw-r--r-- | tests/expressions/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/expressions/tests.py b/tests/expressions/tests.py index f7e8cae856..cce1253e3f 100644 --- a/tests/expressions/tests.py +++ b/tests/expressions/tests.py @@ -830,7 +830,7 @@ class ReprTests(TestCase): ) self.assertEqual(repr(Col('alias', 'field')), "Col(alias, field)") self.assertEqual(repr(Date('published', 'exact')), "Date(published, exact)") - self.assertEqual(repr(DateTime('published', 'exact', utc)), "DateTime(published, exact, UTC)") + self.assertEqual(repr(DateTime('published', 'exact', utc)), "DateTime(published, exact, %s)" % utc) self.assertEqual(repr(F('published')), "F(published)") self.assertEqual(repr(F('cost') + F('tax')), "<Expression: F(cost) + F(tax)>") self.assertEqual(repr(Func('published', function='TO_CHAR')), "Func(F(published), function=TO_CHAR)") |
