Page MenuHomePhabricator

pwb_tests.test_locals fails for py3.6
Closed, ResolvedPublic

Description

FAIL: test_locals (tests.pwb_tests.TestPwb)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/magul/pywikibot-core/tests/pwb_tests.py", line 67, in test_locals
    self._do_check('print_locals')
  File "/home/travis/build/magul/pywikibot-core/tests/pwb_tests.py", line 47, in _do_check
    self.assertEqual(direct['stdout'], vpwb['stdout'])
AssertionError: "'__annotations__': {}\n'__builtins__': <modu[417 chars]2)\n" != "'__builtins__': <module 'builtins' (built-in[394 chars]2)\n"
- '__annotations__': {}
  '__builtins__': <module 'builtins' (built-in)>
  '__doc__': 'Script that forms part of pwb_tests.'
  __file__: './tests/pwb/print_locals.py'
  '__name__': '__main__'
  '__package__': 'tests.pwb'
  'absolute_import': _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384)
  'os': <module 'os' from '/home/travis/virtualenv/python3.6.1/lib/python3.6/os.py'>
  'unicode_literals': _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 131072)

Event Timeline

Xqt triaged this task as High priority.Apr 29 2017, 6:20 AM

Change 350972 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [test] skip annotations in print_locals.py

https://gerrit.wikimedia.org/r/350972

Change 350972 merged by jenkins-bot:
[pywikibot/core@master] [test] skip annotations in print_locals.py

https://gerrit.wikimedia.org/r/350972