This commit is contained in:
Kyle Lahnakoski 2019-11-20 08:56:25 -05:00
Родитель a577abc1a0
Коммит 852e685c41
4 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -1,2 +1,2 @@
mo-future>=2.46
mo-future>=3
pyparsing==2.3.1

Просмотреть файл

@ -12,7 +12,7 @@ from __future__ import absolute_import, division, unicode_literals
from unittest import TestCase
from moz_sql_parser import parse, format
from tests.util import assertRaises
from .util import assertRaises # RELATIVE IMPORT SO WE CAN RUN IN pyLibrary
class TestErrors(TestCase):

Просмотреть файл

@ -12,7 +12,7 @@ from __future__ import absolute_import, division, unicode_literals
from unittest import TestCase, skip
from moz_sql_parser import parse, sql_parser
from tests.util import assertRaises
from .util import assertRaises
class TestSimple(TestCase):

Просмотреть файл

@ -7,7 +7,7 @@
from __future__ import absolute_import, division, unicode_literals
from mo_future import text_type
from mo_future import text
def assertRaises(expected_text_in_error, method):
@ -15,7 +15,7 @@ def assertRaises(expected_text_in_error, method):
method()
raise Exception("expecting an exception")
except Exception as e:
text_error = text_type(e)
text_error = text(e)
if not isinstance(expected_text_in_error, (list, tuple, set)):
expected_text_in_error = [expected_text_in_error]