XZise created this task. XZise added a subscriber: XZise. XZise added projects: pywikibot-core, Pywikibot-tests. Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION When testing today my patch https://gerrit.wikimedia.org/r/#/c/228348/3 I got: ``` ====================================================================== ERROR: test_regex (tests.tools_ip_tests.IPRegexTestCase) Test IP regex. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/xzise/Programms/pywikibot/core/tests/tools_ip_tests.py", line 649, in test_regex self._run_tests() File "/home/xzise/Programms/pywikibot/core/tests/tools_ip_tests.py", line 281, in _run_tests self.ipv6test(False, "2001:db8:85a3::8a2e:37023:7334") File "/home/xzise/Programms/pywikibot/core/tests/tools_ip_tests.py", line 46, in ipv6test self.assertEqual(result, self._do_ip_test(IP)) File "/home/xzise/Programms/pywikibot/core/tests/tools_ip_tests.py", line 645, in _do_ip_test return bool(ip.ip_regexp.match(address)) File "/home/xzise/Programms/pywikibot/core/pywikibot/tools/__init__.py", line 321, in __getattr__ self._name, self._instead, 2) File "/home/xzise/Programms/pywikibot/core/pywikibot/tools/__init__.py", line 1104, in issue_deprecation_warning warn(u'{0} is deprecated.'.format(name), _NotImplementedWarning, File "/home/xzise/Programms/pywikibot/core/tests/utils.py", line 178, in detailed_show_warning for (_, filename, fileno, _, line, _) in inspect.stack(): File "/home/xzise/.pyenv/versions/3.4.3/lib/python3.4/inspect.py", line 1348, in stack return getouterframes(sys._getframe(1), context) File "/home/xzise/.pyenv/versions/3.4.3/lib/python3.4/inspect.py", line 1327, in getouterframes framelist.append((frame,) + getframeinfo(frame, context)) File "/home/xzise/.pyenv/versions/3.4.3/lib/python3.4/inspect.py", line 1302, in getframeinfo lines, lnum = findsource(frame) File "/home/xzise/.pyenv/versions/3.4.3/lib/python3.4/inspect.py", line 715, in findsource if pat.match(lines[lnum]): break IndexError: list index out of range ``` I don't really understand why this is happening, as https://travis-ci.org/xZise/pywikibot-core/builds/73731473 which uses almost the same patches doesn't note anything and I only got one error in the middle of the tests?! Anyway on Travis now the exact same patch as above is run too: https://travis-ci.org/xZise/pywikibot-core/builds/73732520 TASK DETAIL https://phabricator.wikimedia.org/T107680 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: XZise Cc: Aklapper, pywikibot-bugs-list, XZise, jayvdb, Malyacko, P.Copp _______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
