GNU bug report logs - #42062
python-autopep8 fails its test suite

Previous Next

Package: guix;

Reported by: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Date: Fri, 26 Jun 2020 16:10:01 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42062 in the body.
You can then email your comments to 42062 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#42062; Package guix. (Fri, 26 Jun 2020 16:10:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 26 Jun 2020 16:10:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: bug-guix <bug-guix <at> gnu.org>
Subject: python-autopep8 fails its test suite
Date: Fri, 26 Jun 2020 12:09:04 -0400
Hello,

I've seen this with a frehsly pulled Guix (commit
93ff6a40e4f4c7f5d7b8af558a537732b919d0ec):

======================================================================
FAIL: test_e501_experimental_decorator (test.test_autopep8.ExperimentalSystemTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/guix-build-python-autopep8-1.3.5.drv-0/autopep8-1.3.5/test/test_autopep8.py", line 5847, in test_e501_experimental_decorator
    self.assertEqual(fixed, result)
AssertionError: "\n\n <at> foo(('xxxxxxxxxxxxxxxxxxxxxxxxxx', u[123 chars]))\n" != "@foo(('xxxxxxxxxxxxxxxxxxxxxxxxxx', users[119 chars]))\n"
- 
- 
  @foo(('xxxxxxxxxxxxxxxxxxxxxxxxxx', users.xxxxxxxxxxxxxxxxxxxxxxxxxx),
       ('yyyyyyyyyyyy', users.yyyyyyyyyyyy),
       ('zzzzzzzzzzzzzz', users.zzzzzzzzzzzzzz))


======================================================================
FAIL: test_e501_experimental_with_function_should_not_break_on_colon (test.test_autopep8.ExperimentalSystemTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/guix-build-python-autopep8-1.3.5.drv-0/autopep8-1.3.5/test/test_autopep8.py", line 5451, in test_e501_experimental_with_function_should_not_break_on_colon
    self.assertEqual(fixed, result)
AssertionError: '\ncl[112 chars]et or(\n                widget.__class__ == Wi[88 chars]se\n' != '\ncl[112 chars]et or (\n                widget.__class__ == W[89 chars]se\n'
  
  class Useless(object):
  
      def _table_field_is_plain_widget(self, widget):
-         if widget.__class__ == Widget or(
+         if widget.__class__ == Widget or (
?                                         +
                  widget.__class__ == WidgetMeta and Widget in widget.__bases__):
              return True
  
          return False


======================================================================
FAIL: test_e501_more_aggressive_with_def (test.test_autopep8.SystemTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/guix-build-python-autopep8-1.3.5.drv-0/autopep8-1.3.5/test/test_autopep8.py", line 3429, in test_e501_more_aggressive_with_def
    self.assertEqual(fixed, result)
AssertionError: '\n\ndef foobar(\n        sldfkjlsdfsdf,\n[179 chars]ss\n' != 'def foobar(\n        sldfkjlsdfsdf,\n    [175 chars]ss\n'
- 
- 
  def foobar(
          sldfkjlsdfsdf,
          kksdfsdfsf,
          sdfsdfsdf,
          sdfsdfkdk,
          szdfsdfsdf,
          sdfsdfsdfsdlkfjsdlf,
          sdfsdfddf,
          sdfsdfsfd,
          sdfsdfdsf):
      pass


----------------------------------------------------------------------
Ran 505 tests in 18.107s

FAILED (failures=3, skipped=4)
Test failed: <unittest.runner.TextTestResult run=505 errors=0 failures=3>
error: Test failed: <unittest.runner.TextTestResult run=505 errors=0 failures=3>
command "python" "-c" "import setuptools, tokenize;__file__='setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))" "test" failed with status 1

Maxim




Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Fri, 26 Jun 2020 17:53:02 GMT) Full text and rfc822 format available.

Notification sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
bug acknowledged by developer. (Fri, 26 Jun 2020 17:53:02 GMT) Full text and rfc822 format available.

Message #10 received at 42062-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: bug#42062 <42062-done <at> debbugs.gnu.org>
Subject: Re: Status: python-autopep8 fails its test suite
Date: Fri, 26 Jun 2020 13:51:52 -0400
Fixed with commit c0dd4140f6.

Closing,

Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 25 Jul 2020 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 276 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.