jenkins-bot has submitted this change and it was merged.
Change subject: [FEAT] Travis: Check Python 3 ......................................................................
[FEAT] Travis: Check Python 3
With b9d252ec558531816f18d05adfce9e9559af7421 Python 3 support is possible and only the pwb_tests fail. This runs now also a 3.3 test on Travis but skips pwb_tests on Python 3.
Change-Id: If7fd171c64f612c780bee00beb46d20fd45d1fae --- M .travis.yml M tests/pwb_tests.py 2 files changed, 2 insertions(+), 1 deletion(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/.travis.yml b/.travis.yml index 2eee812..a4f914d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,7 @@ - python setup.py install - cd ../..
- - if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then export USE_NOSE=1; fi + - if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then export PY3=1; fi
script: - if [[ "$USE_NOSE" == "1" ]]; then nosetests -v -a '!site,!net' tests; else python setup.py test; fi diff --git a/tests/pwb_tests.py b/tests/pwb_tests.py index e725a9d..109505e 100644 --- a/tests/pwb_tests.py +++ b/tests/pwb_tests.py @@ -23,6 +23,7 @@ return subprocess.Popen(command, stdout=subprocess.PIPE).communicate()[0]
+@unittest.skipIf(sys.version_info[0] > 2, "The mapping is different in Python 3") class TestPwb(TestCase):
"""
pywikibot-commits@lists.wikimedia.org