You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test/bad_encoding.py and test/bad_encoding2.py are missing in PyPI tarball, which results in errors in test_read_from_filename_with_bad_encoding() and test_read_from_filename_with_bad_encoding2().
$ PYTHONPATH="." python2.7 test/test_autopep8.py
.................................................................................................................................EE.
======================================================================
ERROR: test_read_from_filename_with_bad_encoding (__main__.TestUtils)
Bad encoding should not cause an exception.
----------------------------------------------------------------------
Traceback (most recent call last):
File "test/test_autopep8.py", line 79, in test_read_from_filename_with_bad_encoding
os.path.join(ROOT_DIR, 'test', 'bad_encoding.py')))
File "/tmp/autopep8-0.6.4/autopep8.py", line 81, in read_from_filename
encoding=detect_encoding(filename)) as input_file:
File "/tmp/autopep8-0.6.4/autopep8.py", line 59, in detect_encoding
with open(filename, 'rb') as input_file:
IOError: [Errno 2] No such file or directory: '/tmp/autopep8-0.6.4/test/bad_encoding.py'
======================================================================
ERROR: test_read_from_filename_with_bad_encoding2 (__main__.TestUtils)
Bad encoding should not cause an exception.
----------------------------------------------------------------------
Traceback (most recent call last):
File "test/test_autopep8.py", line 84, in test_read_from_filename_with_bad_encoding2
os.path.join(ROOT_DIR, 'test', 'bad_encoding2.py')))
File "/tmp/autopep8-0.6.4/autopep8.py", line 81, in read_from_filename
encoding=detect_encoding(filename)) as input_file:
File "/tmp/autopep8-0.6.4/autopep8.py", line 59, in detect_encoding
with open(filename, 'rb') as input_file:
IOError: [Errno 2] No such file or directory: '/tmp/autopep8-0.6.4/test/bad_encoding2.py'
----------------------------------------------------------------------
Ran 132 tests in 3.852s
FAILED (errors=2)
The text was updated successfully, but these errors were encountered:
@jayrod, it seems to work for me. Could you provide the relevant commands you used and the traceback you are getting?
$ wget https://pypi.python.org/packages/source/a/autopep8/autopep8-1.2.1.tar.gz#md5=4167555f521ddd69b66f13819604f3db
$ tar xf autopep8-1.2.1.tar.gz
$ cd autopep8-1.2.1/
$ python test/test_autopep8.py
Ran 457 tests in 16.968s
OK (skipped=2)
test/bad_encoding.py and test/bad_encoding2.py are missing in PyPI tarball, which results in errors in test_read_from_filename_with_bad_encoding() and test_read_from_filename_with_bad_encoding2().
The text was updated successfully, but these errors were encountered: