mirror of https://github.com/zulip/zulip.git
tests: Remove old six.PY2 code paths.
This commit is contained in:
parent
b8e7369dee
commit
4229faf36e
|
@ -107,14 +107,6 @@ class ZulipTestCase(TestCase):
|
|||
functions have to fake out the linter by using a local variable called
|
||||
django_client to fool the regext.
|
||||
'''
|
||||
def __init__(self, *args, **kwargs):
|
||||
# type: (*Any, **Any) -> None
|
||||
# This method should be removed when we migrate to version 3 of Python
|
||||
import six
|
||||
if six.PY2:
|
||||
self.assertRaisesRegex = self.assertRaisesRegexp
|
||||
super(ZulipTestCase, self).__init__(*args, **kwargs)
|
||||
|
||||
DEFAULT_REALM = Realm.objects.get(string_id='zulip')
|
||||
|
||||
@instrument_url
|
||||
|
|
|
@ -40,14 +40,6 @@ from zerver.models import \
|
|||
import ujson
|
||||
|
||||
class DecoratorTestCase(TestCase):
|
||||
def __init__(self, *args, **kwargs):
|
||||
# type: (*Any, **Any) -> None
|
||||
# This method should be removed when we migrate to version 3 of Python
|
||||
import six
|
||||
if six.PY2:
|
||||
self.assertRaisesRegex = self.assertRaisesRegexp
|
||||
super(TestCase, self).__init__(*args, **kwargs)
|
||||
|
||||
def test_get_client_name(self):
|
||||
# type: () -> None
|
||||
class Request(object):
|
||||
|
|
Loading…
Reference in New Issue