jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/586369 )
Change subject: [cleanup] Remove python_tests.py ......................................................................
[cleanup] Remove python_tests.py
Python 3 has fully unicode support and Python 2 has his sunset. It is not necessary to test Python furthermore.
Change-Id: Ic4d01784b839fb57dbdda70096f5521bbab1d640 --- M tests/__init__.py D tests/python_tests.py 2 files changed, 0 insertions(+), 51 deletions(-)
Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/__init__.py b/tests/__init__.py index ef9ed80..6b00ec7 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -109,7 +109,6 @@ 'paraminfo', 'plural', 'proofreadpage', - 'python', 'site', 'site_detect', 'sparql', diff --git a/tests/python_tests.py b/tests/python_tests.py deleted file mode 100755 index 5100768..0000000 --- a/tests/python_tests.py +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- -"""Tests Python features.""" -# -# (C) Pywikibot team, 2015-2018 -# -# Distributed under the terms of the MIT license. -from __future__ import absolute_import, division, unicode_literals - -import unicodedata - -from tests.aspects import TestCase, unittest - -# TODO: -# unicode -# http://sourceforge.net/p/pywikipediabot/bugs/1246/ -# http://bugs.python.org/issue10254 -# -# ip -# http://bugs.python.org/issue22282 -# -# http://bugs.python.org/issue7559 -# -# diff -# http://bugs.python.org/issue2142 -# http://bugs.python.org/issue11747 -# http://sourceforge.net/p/pywikipediabot/bugs/509/ -# https://phabricator.wikimedia.org/T57329 -# http://bugs.python.org/issue1528074 - - -class PythonTestCase(TestCase): - - """Test Python bugs and features.""" - - net = False - - def test_issue_10254(self): - """Test Python issue #10254.""" - # Python 2.7.0 and 2.7.1 have a bug in this routine. - # See T102461 and http://bugs.python.org/issue10254 - text = 'Li̍t-sṳ́' - self.assertEqual(text, unicodedata.normalize('NFC', text)) - - -if __name__ == '__main__': # pragma: no cover - try: - unittest.main() - except SystemExit: - pass
pywikibot-commits@lists.wikimedia.org