updates from other projects
This commit is contained in:
Родитель
a577abc1a0
Коммит
852e685c41
|
@ -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]
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче