Xqt has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/350972 )
Change subject: [test] skip __annotations__ in print_locals.py
......................................................................
[test] skip __annotations__ in print_locals.py
With py3.6 __annotations__ is an additional item in locals() but not
emulated in pwb. Skip it.
Bug: T164141
Change-Id: Ie0b0432781adcacf081517ef44198088d8e20720
---
M tests/pwb/print_locals.py
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/72/350972/1
diff --git a/tests/pwb/print_locals.py b/tests/pwb/print_locals.py
index de8b792..57951f8 100644
--- a/tests/pwb/print_locals.py
+++ b/tests/pwb/print_locals.py
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
"""Script that forms part of pwb_tests."""
#
-# (C) Pywikibot team, 2013-2015
+# (C) Pywikibot team, 2013-2017
#
# Distributed under the terms of the MIT license.
#
@@ -12,7 +12,7 @@
for k, v in sorted(locals().copy().items()):
# Skip a few items that Python 3 adds and are not emulated in pwb.
- if k in ['__cached__', '__loader__', '__spec__']:
+ if k in ['__cached__', '__loader__', '__spec__', '__annotations__']:
continue
if k == '__file__':
print("__file__: %r" % os.path.join('.', os.path.relpath(__file__)))
--
To view, visit https://gerrit.wikimedia.org/r/350972
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie0b0432781adcacf081517ef44198088d8e20720
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits