Closed mgorny closed 1 year ago
Pass -Wignore::DeprecationWarning when spawning autopep8 in tests to fix the two test failures when running on Python 3.11:
-Wignore::DeprecationWarning
====================================================================== FAIL: test_in_place_no_modifications_no_writes (__main__.CommandLineTests.test_in_place_no_modifications_no_writes) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopep8/test/test_autopep8.py", line 5518, in test_in_place_no_modifications_no_writes self.assertEqual(err, b'') AssertionError: b'/tmp/autopep8/autopep8.py:182: Deprecatio[137 chars]ze\n' != b'' ====================================================================== FAIL: test_in_place_no_modifications_no_writes_with_empty_file (__main__.CommandLineTests.test_in_place_no_modifications_no_writes_with_empty_file) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopep8/test/test_autopep8.py", line 5530, in test_in_place_no_modifications_no_writes_with_empty_file self.assertEqual(err, b'') AssertionError: b'/tmp/autopep8/autopep8.py:182: Deprecatio[137 chars]ze\n' != b''
This is a temporary fix until issue #581 is resolved.
Thank you!
Pass
-Wignore::DeprecationWarning
when spawning autopep8 in tests to fix the two test failures when running on Python 3.11:This is a temporary fix until issue #581 is resolved.