mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #27579 -- Added aliases for Python 3's assertion names in SimpleTestCase.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user