avian2 / unidecode

ASCII transliterations of Unicode text - GitHub mirror
https://pypi.python.org/pypi/Unidecode
GNU General Public License v2.0
517 stars 62 forks source link

Test failure with PyPy 7.1.1 #50

Closed mgorny closed 5 years ago

mgorny commented 5 years ago

The tests in 1.1.0 release fail with PyPy:

======================================================================                                                                             
FAIL: test_encoding_error (tests.test_utility.TestUnidecodeUtility)                                                                                
----------------------------------------------------------------------                                                                             
Traceback (most recent call last):                                                                                                                 
  File "/tmp/portage/dev-python/unidecode-1.1.0/work/Unidecode-1.1.0/tests/test_utility.py", line 43, in test_encoding_error
    self.assertEqual(err, expected)                                      
AssertionError: u'Unable to decode input: invalid utf-8, start: 0, end: 1\n' != 'Unable to decode input: invalid start byte, start: 0, end: 1\n'

----------------------------------------------------------------------
avian2 commented 5 years ago

Can you check if code in git master works for you? Thanks.

mgorny commented 5 years ago

Yes, it does! Thanks!

  py27: commands succeeded
  py34: commands succeeded
  py35: commands succeeded
  py36: commands succeeded
  py37: commands succeeded
  pypy: commands succeeded
  pypy3: commands succeeded
  congratulations :)
mgorny commented 5 years ago

Thanks for the quick fix and release.