diff options
Diffstat (limited to 'tests/timezones/tests.py')
| -rw-r--r-- | tests/timezones/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/timezones/tests.py b/tests/timezones/tests.py index c50d356074..8f9bd23241 100644 --- a/tests/timezones/tests.py +++ b/tests/timezones/tests.py @@ -679,7 +679,7 @@ class SerializationTests(SimpleTestCase): def assert_yaml_contains_datetime(self, yaml, dt): # Depending on the yaml dumper, '!timestamp' might be absent - six.assertRegex(self, yaml, r"\n fields: {dt: !(!timestamp)? '%s'}" % re.escape(dt)) + self.assertRegex(yaml, r"\n fields: {dt: !(!timestamp)? '%s'}" % re.escape(dt)) def test_naive_datetime(self): dt = datetime.datetime(2011, 9, 1, 13, 20, 30) |
