Remove py2 fallback code from wagtail.wagtailcore.tests.test_tests

pull/4009/head
Matt Westcott 2017-11-09 00:08:28 +00:00 zatwierdzone przez Karl Hobley
rodzic c9cf1536e1
commit 2231906ebe
1 zmienionych plików z 0 dodań i 7 usunięć

Wyświetl plik

@ -1,7 +1,6 @@
from __future__ import absolute_import, unicode_literals
from django.test import TestCase
from django.utils import six
from wagtail.tests.testapp.models import (
BusinessChild, BusinessIndex, BusinessNowherePage, BusinessSubIndex, EventIndex, EventPage,
@ -67,12 +66,6 @@ class TestWagtailPageTests(WagtailPageTests):
site = Site.objects.get(is_default_site=True)
self.root = site.root_page.specific
def assertRaisesRegex(self, *args, **kwargs):
if six.PY3:
return super(TestWagtailPageTests, self).assertRaisesRegex(*args, **kwargs)
else:
return self.assertRaisesRegexp(*args, **kwargs)
def test_assert_can_create_at(self):
# It should be possible to create an EventPage under an EventIndex,
self.assertCanCreateAt(EventIndex, EventPage)