From 6014856df5717496b57aaac6c8a2e64b125ac32b Mon Sep 17 00:00:00 2001 From: Konstantin Lopuhin Date: Thu, 1 Sep 2016 18:39:25 +0300 Subject: [PATCH] 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. --- tests/test_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_loader.py b/tests/test_loader.py index 2693a18d9..9d07eb95b 100644 --- a/tests/test_loader.py +++ b/tests/test_loader.py @@ -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)