提交 6014856d 编写于 作者: K Konstantin Lopuhin

Fix test_output_processor_error undere PyPy

For float(u'$10') PyPy includes "u'" in the error message,
and it's more fair to check error message on input we are really
passing.
上级 5a08cf3b
......@@ -290,7 +290,7 @@ class BasicItemLoaderTest(unittest.TestCase):
il = TestItemLoader()
il.add_value('name', [u'$10'])
try:
float('$10')
float(u'$10')
except Exception as e:
expected_exc_str = str(e)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册