diff options
| author | Tim Graham <timograham@gmail.com> | 2015-01-31 14:20:36 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-01-31 19:59:17 -0500 |
| commit | 62df1834b8d60c106c8c16524b275b8a1f47ac3a (patch) | |
| tree | 077bf150fd52f617af7294b1614e9c2e5831cb4f | |
| parent | 75303b01a9cc900eebf1f27ba0bc6508334242fc (diff) | |
Fixed expressions test on Python 3.5; refs #23763.
| -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)") |
