mirror of https://github.com/scrapy/scrapy.git
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.
This commit is contained in:
parent
5a08cf3b96
commit
6014856df5
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue