jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/348942 )
Change subject: Remove __version__ variable from the modules of the test package ......................................................................
Remove __version__ variable from the modules of the test package
Bug: T87409 Change-Id: I135e87fb67ca59aff31153dcf8132776fdfae14f --- M tests/__init__.py M tests/add_text_tests.py M tests/api_tests.py M tests/archivebot_tests.py M tests/aspects.py M tests/basepage_tests.py M tests/bot_tests.py M tests/cache_tests.py M tests/category_bot_tests.py M tests/category_tests.py M tests/cosmetic_changes_tests.py M tests/data_ingestion_tests.py M tests/deletionbot_tests.py M tests/deprecation_tests.py M tests/diff_tests.py M tests/disambredir_tests.py M tests/dry_api_tests.py M tests/dry_site_tests.py M tests/edit_failure_tests.py M tests/edit_tests.py M tests/exceptions_tests.py M tests/family_tests.py M tests/file_tests.py M tests/fixes_tests.py M tests/flow_edit_tests.py M tests/flow_tests.py M tests/http_tests.py M tests/i18n_tests.py M tests/interwiki_graph_tests.py M tests/interwiki_link_tests.py M tests/interwikidata_tests.py M tests/isbn_tests.py M tests/l10n_tests.py M tests/link_tests.py M tests/logentry_tests.py M tests/login_tests.py M tests/mediawikiversion_tests.py M tests/namespace_tests.py M tests/oauth_tests.py M tests/page_tests.py M tests/pagegenerators_tests.py M tests/paraminfo_tests.py M tests/patrolbot_tests.py M tests/plural_tests.py M tests/proofreadpage_tests.py M tests/protectbot_tests.py M tests/pwb_tests.py M tests/python_tests.py M tests/redirect_bot_tests.py M tests/reflinks_tests.py M tests/replacebot_tests.py M tests/script_tests.py M tests/site_detect_tests.py M tests/site_tests.py M tests/template_bot_tests.py M tests/tests_tests.py M tests/textlib_tests.py M tests/thread_tests.py M tests/timestamp_tests.py M tests/timestripper_tests.py M tests/tk_tests.py M tests/tools_chars_tests.py M tests/tools_formatter_tests.py M tests/tools_ip_tests.py M tests/tools_tests.py M tests/ui_options_tests.py M tests/ui_tests.py M tests/upload_tests.py M tests/uploadbot_tests.py M tests/user_tests.py M tests/utils.py M tests/weblib_tests.py M tests/weblinkchecker_tests.py M tests/wikibase_edit_tests.py M tests/wikibase_tests.py M tests/wikidataquery_tests.py M tests/wikistats_tests.py M tests/xmlreader_tests.py 78 files changed, 3 insertions(+), 168 deletions(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/tests/__init__.py b/tests/__init__.py index 1d51dcb..9b5de60 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, print_function, unicode_literals
-__version__ = '$Id$' - import functools import os import warnings diff --git a/tests/add_text_tests.py b/tests/add_text_tests.py index 02d9bc8..d696809 100644 --- a/tests/add_text_tests.py +++ b/tests/add_text_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import pywikibot
from scripts.add_text import add_text diff --git a/tests/api_tests.py b/tests/api_tests.py index 008b85e..6c2437a 100644 --- a/tests/api_tests.py +++ b/tests/api_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import datetime import types
diff --git a/tests/archivebot_tests.py b/tests/archivebot_tests.py index dc0e890..3b4971c 100644 --- a/tests/archivebot_tests.py +++ b/tests/archivebot_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - from datetime import datetime, timedelta
import pywikibot diff --git a/tests/aspects.py b/tests/aspects.py index b194da8..0d3ace2 100644 --- a/tests/aspects.py +++ b/tests/aspects.py @@ -12,7 +12,6 @@ # Distributed under the terms of the MIT license. # from __future__ import absolute_import, print_function, unicode_literals -__version__ = '$Id$' """ TODO:
diff --git a/tests/basepage_tests.py b/tests/basepage_tests.py index 7a91fbb..b30c806 100644 --- a/tests/basepage_tests.py +++ b/tests/basepage_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - from pywikibot.page import BasePage
from tests.aspects import ( diff --git a/tests/bot_tests.py b/tests/bot_tests.py index f99eee1..47c3618 100644 --- a/tests/bot_tests.py +++ b/tests/bot_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# import sys
import pywikibot diff --git a/tests/cache_tests.py b/tests/cache_tests.py index 2e8e96b..f32eda4 100644 --- a/tests/cache_tests.py +++ b/tests/cache_tests.py @@ -7,9 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - from pywikibot.site import BaseSite
import scripts.maintenance.cache as cache diff --git a/tests/category_bot_tests.py b/tests/category_bot_tests.py index 29dad8e..28df25b 100644 --- a/tests/category_bot_tests.py +++ b/tests/category_bot_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - try: from unittest.mock import patch, Mock except ImportError: diff --git a/tests/category_tests.py b/tests/category_tests.py index f5b9fef..b4d5c70 100644 --- a/tests/category_tests.py +++ b/tests/category_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import pywikibot import pywikibot.page
diff --git a/tests/cosmetic_changes_tests.py b/tests/cosmetic_changes_tests.py index cc3947c..02cce31 100644 --- a/tests/cosmetic_changes_tests.py +++ b/tests/cosmetic_changes_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - from pywikibot.cosmetic_changes import CosmeticChangesToolkit
from tests.aspects import unittest, TestCase diff --git a/tests/data_ingestion_tests.py b/tests/data_ingestion_tests.py index e66c891..92dd12c 100644 --- a/tests/data_ingestion_tests.py +++ b/tests/data_ingestion_tests.py @@ -8,8 +8,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - from scripts import data_ingestion
from tests import join_data_path, join_images_path diff --git a/tests/deletionbot_tests.py b/tests/deletionbot_tests.py index 8c950e6..e054288 100644 --- a/tests/deletionbot_tests.py +++ b/tests/deletionbot_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import pywikibot import pywikibot.page
diff --git a/tests/deprecation_tests.py b/tests/deprecation_tests.py index 56f127d..dfee80b 100644 --- a/tests/deprecation_tests.py +++ b/tests/deprecation_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - from pywikibot.tools import ( deprecated, deprecate_arg, deprecated_args, add_full_name, remove_last_args ) diff --git a/tests/diff_tests.py b/tests/diff_tests.py index 82d1547..26fdb80 100644 --- a/tests/diff_tests.py +++ b/tests/diff_tests.py @@ -7,8 +7,6 @@ # Distributed under the terms of the MIT license. from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import sys
from pywikibot.diff import cherry_pick, html_comparator, PatchManager diff --git a/tests/disambredir_tests.py b/tests/disambredir_tests.py index 701ad6c..8e108bf 100644 --- a/tests/disambredir_tests.py +++ b/tests/disambredir_tests.py @@ -11,9 +11,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import pywikibot
from scripts import disambredir diff --git a/tests/dry_api_tests.py b/tests/dry_api_tests.py index f4a4c4a..ed405af 100644 --- a/tests/dry_api_tests.py +++ b/tests/dry_api_tests.py @@ -7,9 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import datetime
import pywikibot diff --git a/tests/dry_site_tests.py b/tests/dry_site_tests.py index aeea493..b384e48 100644 --- a/tests/dry_site_tests.py +++ b/tests/dry_site_tests.py @@ -7,9 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import pywikibot from pywikibot.tools import deprecated from pywikibot.site import must_be, need_version diff --git a/tests/edit_failure_tests.py b/tests/edit_failure_tests.py index 5c8fcb9..f77bdc2 100644 --- a/tests/edit_failure_tests.py +++ b/tests/edit_failure_tests.py @@ -14,8 +14,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import pywikibot from pywikibot import ( Error, diff --git a/tests/edit_tests.py b/tests/edit_tests.py index 31f6c83..62f8750 100644 --- a/tests/edit_tests.py +++ b/tests/edit_tests.py @@ -7,9 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import time
import pywikibot diff --git a/tests/exceptions_tests.py b/tests/exceptions_tests.py index ef300e0..5681101 100644 --- a/tests/exceptions_tests.py +++ b/tests/exceptions_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import pywikibot
from tests.aspects import unittest, DeprecationTestCase diff --git a/tests/family_tests.py b/tests/family_tests.py index 1482cad..97778df 100644 --- a/tests/family_tests.py +++ b/tests/family_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import pywikibot.site
from pywikibot.exceptions import UnknownFamily diff --git a/tests/file_tests.py b/tests/file_tests.py index 9ee5a4b..2065bbb 100644 --- a/tests/file_tests.py +++ b/tests/file_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import os
import pywikibot diff --git a/tests/fixes_tests.py b/tests/fixes_tests.py index d6e67e4..ea694f1 100644 --- a/tests/fixes_tests.py +++ b/tests/fixes_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - from pywikibot import fixes
from tests import unittest, join_data_path diff --git a/tests/flow_edit_tests.py b/tests/flow_edit_tests.py index 5287f22..5276f9f 100644 --- a/tests/flow_edit_tests.py +++ b/tests/flow_edit_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - from pywikibot.exceptions import LockedPage from pywikibot.flow import Board, Topic, Post from pywikibot.tools import UnicodeType as unicode diff --git a/tests/flow_tests.py b/tests/flow_tests.py index f3c4c54..4dc1a82 100644 --- a/tests/flow_tests.py +++ b/tests/flow_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - from pywikibot.exceptions import NoPage from pywikibot.flow import Board, Topic, Post from pywikibot.tools import UnicodeType as unicode diff --git a/tests/http_tests.py b/tests/http_tests.py index af3e5d9..1d730b0 100644 --- a/tests/http_tests.py +++ b/tests/http_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import json import re import warnings diff --git a/tests/i18n_tests.py b/tests/i18n_tests.py index 355f5fd..b4ec0d7 100644 --- a/tests/i18n_tests.py +++ b/tests/i18n_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import pywikibot
from pywikibot import i18n, bot, plural diff --git a/tests/interwiki_graph_tests.py b/tests/interwiki_graph_tests.py index 967547c..c2fd0b7 100644 --- a/tests/interwiki_graph_tests.py +++ b/tests/interwiki_graph_tests.py @@ -8,8 +8,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - from pywikibot import interwiki_graph
from tests.aspects import unittest, require_modules, SiteAttributeTestCase diff --git a/tests/interwiki_link_tests.py b/tests/interwiki_link_tests.py index e7e852c..de9aaac 100644 --- a/tests/interwiki_link_tests.py +++ b/tests/interwiki_link_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - from pywikibot import config2 as config
from pywikibot.exceptions import InvalidTitle diff --git a/tests/interwikidata_tests.py b/tests/interwikidata_tests.py index 708acd3..d5618db 100644 --- a/tests/interwikidata_tests.py +++ b/tests/interwikidata_tests.py @@ -7,8 +7,6 @@ # from __future__ import unicode_literals, absolute_import
-__version__ = '$Id$' - import pywikibot
from pywikibot import Link diff --git a/tests/isbn_tests.py b/tests/isbn_tests.py index da97687..57a55c8 100644 --- a/tests/isbn_tests.py +++ b/tests/isbn_tests.py @@ -9,8 +9,6 @@
import pywikibot
-__version__ = '$Id$' - try: from stdnum.exceptions import ValidationError as StdNumValidationError except ImportError: diff --git a/tests/l10n_tests.py b/tests/l10n_tests.py index ed1dd19..55d2daa 100644 --- a/tests/l10n_tests.py +++ b/tests/l10n_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import pywikibot from pywikibot import i18n from pywikibot.textlib import extract_templates_and_params_regex_simple diff --git a/tests/link_tests.py b/tests/link_tests.py index c5ef4b4..9df58b0 100644 --- a/tests/link_tests.py +++ b/tests/link_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import pywikibot
from pywikibot import config2 as config diff --git a/tests/logentry_tests.py b/tests/logentry_tests.py index 2122637..27bf718 100644 --- a/tests/logentry_tests.py +++ b/tests/logentry_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import datetime
import pywikibot diff --git a/tests/login_tests.py b/tests/login_tests.py index b40ea7c..a1ee8ac 100644 --- a/tests/login_tests.py +++ b/tests/login_tests.py @@ -11,8 +11,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# from collections import defaultdict try: import unittest.mock as mock diff --git a/tests/mediawikiversion_tests.py b/tests/mediawikiversion_tests.py index cabd78e..5535f53 100644 --- a/tests/mediawikiversion_tests.py +++ b/tests/mediawikiversion_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -
from pywikibot.tools import MediaWikiVersion
diff --git a/tests/namespace_tests.py b/tests/namespace_tests.py index 8b8f107..9897f03 100644 --- a/tests/namespace_tests.py +++ b/tests/namespace_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - from collections import Iterable
from pywikibot.site import Namespace, NamespacesDict diff --git a/tests/oauth_tests.py b/tests/oauth_tests.py index 7f3f3df..cd211a2 100644 --- a/tests/oauth_tests.py +++ b/tests/oauth_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import os
from pywikibot.login import OauthLoginManager diff --git a/tests/page_tests.py b/tests/page_tests.py index 3090f4d..6a25368 100644 --- a/tests/page_tests.py +++ b/tests/page_tests.py @@ -8,9 +8,6 @@ from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - - import pickle import re try: diff --git a/tests/pagegenerators_tests.py b/tests/pagegenerators_tests.py index 50628bd..674c13c 100755 --- a/tests/pagegenerators_tests.py +++ b/tests/pagegenerators_tests.py @@ -37,9 +37,6 @@ ) from tests.thread_tests import GeneratorIntersectTestCase
- -__version__ = '$Id$' - en_wp_page_titles = ( # just a bunch of randomly selected titles for English Wikipedia tests u"Eastern Sayan", diff --git a/tests/paraminfo_tests.py b/tests/paraminfo_tests.py index f1162f7..4bab0cf 100644 --- a/tests/paraminfo_tests.py +++ b/tests/paraminfo_tests.py @@ -7,9 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - from pywikibot.family import WikimediaFamily from pywikibot.page import Claim, Property from pywikibot.site import DataSite diff --git a/tests/patrolbot_tests.py b/tests/patrolbot_tests.py index 79d621d..ad91911 100644 --- a/tests/patrolbot_tests.py +++ b/tests/patrolbot_tests.py @@ -7,8 +7,7 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# + try: from scripts import patrol except ImportError: @@ -16,6 +15,7 @@
from tests.aspects import require_modules, unittest, DefaultDrySiteTestCase
+ DUMMY_PAGE_TUPLES = """ This is some text above the entries:
diff --git a/tests/plural_tests.py b/tests/plural_tests.py index f1206d6..62a9ec0 100644 --- a/tests/plural_tests.py +++ b/tests/plural_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - from pywikibot import plural
from tests.aspects import ( diff --git a/tests/proofreadpage_tests.py b/tests/proofreadpage_tests.py index aa3945a..21e9762 100644 --- a/tests/proofreadpage_tests.py +++ b/tests/proofreadpage_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import json
import pywikibot diff --git a/tests/protectbot_tests.py b/tests/protectbot_tests.py index ae31f9b..6eb7678 100644 --- a/tests/protectbot_tests.py +++ b/tests/protectbot_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import pywikibot import pywikibot.page
diff --git a/tests/pwb_tests.py b/tests/pwb_tests.py index da8447c..894780b 100644 --- a/tests/pwb_tests.py +++ b/tests/pwb_tests.py @@ -13,8 +13,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import sys
from tests import join_tests_path, create_path_func diff --git a/tests/python_tests.py b/tests/python_tests.py index f57f514..0320f8e 100755 --- a/tests/python_tests.py +++ b/tests/python_tests.py @@ -7,8 +7,6 @@ # Distributed under the terms of the MIT license. from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import unicodedata try: import unicodedata2 diff --git a/tests/redirect_bot_tests.py b/tests/redirect_bot_tests.py index feb5bfa..f44fd71 100644 --- a/tests/redirect_bot_tests.py +++ b/tests/redirect_bot_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - try: from unittest.mock import Mock, patch except ImportError: diff --git a/tests/reflinks_tests.py b/tests/reflinks_tests.py index 690f4b9..26b7193 100644 --- a/tests/reflinks_tests.py +++ b/tests/reflinks_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - from scripts.reflinks import XmlDumpPageGenerator, ReferencesRobot, main
from tests import join_xml_data_path diff --git a/tests/replacebot_tests.py b/tests/replacebot_tests.py index ca2ae36..938574d 100644 --- a/tests/replacebot_tests.py +++ b/tests/replacebot_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import pywikibot
from pywikibot import fixes diff --git a/tests/script_tests.py b/tests/script_tests.py index d3d3fd4..6bc8c32 100644 --- a/tests/script_tests.py +++ b/tests/script_tests.py @@ -6,7 +6,6 @@ # Distributed under the terms of the MIT license. # from __future__ import absolute_import, print_function, unicode_literals -__version__ = '$Id$'
import os import sys diff --git a/tests/site_detect_tests.py b/tests/site_detect_tests.py index 15616ea..a3cbfe8 100644 --- a/tests/site_detect_tests.py +++ b/tests/site_detect_tests.py @@ -16,9 +16,6 @@ from tests.aspects import unittest, TestCase
-__version__ = '$Id$' - - class SiteDetectionTestCase(TestCase):
"""Testcase for MediaWiki detection and site object creation.""" diff --git a/tests/site_tests.py b/tests/site_tests.py index 1dffc0d..ba943c1 100644 --- a/tests/site_tests.py +++ b/tests/site_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import json import os import pickle diff --git a/tests/template_bot_tests.py b/tests/template_bot_tests.py index af16d80..df1bcfa 100644 --- a/tests/template_bot_tests.py +++ b/tests/template_bot_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import pywikibot
from pywikibot.pagegenerators import XMLDumpPageGenerator diff --git a/tests/tests_tests.py b/tests/tests_tests.py index 910b306..78b4738 100755 --- a/tests/tests_tests.py +++ b/tests/tests_tests.py @@ -7,8 +7,6 @@ # Distributed under the terms of the MIT license. from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import pywikibot
from tests.aspects import unittest, TestCase diff --git a/tests/textlib_tests.py b/tests/textlib_tests.py index f98bb42..c28407b 100644 --- a/tests/textlib_tests.py +++ b/tests/textlib_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import codecs import functools import os diff --git a/tests/thread_tests.py b/tests/thread_tests.py index f0e2cc0..1069287 100644 --- a/tests/thread_tests.py +++ b/tests/thread_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - from tests.aspects import unittest, TestCase
from pywikibot.tools import ThreadedGenerator, intersect_generators diff --git a/tests/timestamp_tests.py b/tests/timestamp_tests.py index df29c6b..0e26337 100644 --- a/tests/timestamp_tests.py +++ b/tests/timestamp_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import calendar import datetime
diff --git a/tests/timestripper_tests.py b/tests/timestripper_tests.py index ec2d0b5..928848a 100644 --- a/tests/timestripper_tests.py +++ b/tests/timestripper_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import datetime import re
diff --git a/tests/tk_tests.py b/tests/tk_tests.py index 72c6810..0fee1b4 100644 --- a/tests/tk_tests.py +++ b/tests/tk_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import os
from pywikibot.tools import PY2 diff --git a/tests/tools_chars_tests.py b/tests/tools_chars_tests.py index be5fa93..dd90b95 100644 --- a/tests/tools_chars_tests.py +++ b/tests/tools_chars_tests.py @@ -7,8 +7,6 @@ # Distributed under the terms of the MIT license. from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import unicodedata
from distutils.version import StrictVersion diff --git a/tests/tools_formatter_tests.py b/tests/tools_formatter_tests.py index 61f24f1..34a187d 100644 --- a/tests/tools_formatter_tests.py +++ b/tests/tools_formatter_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# from pywikibot.tools import formatter from pywikibot.tools import UnicodeMixin
diff --git a/tests/tools_ip_tests.py b/tests/tools_ip_tests.py index 8134324..4bcd31c 100644 --- a/tests/tools_ip_tests.py +++ b/tests/tools_ip_tests.py @@ -7,8 +7,6 @@ # Distributed under the terms of the MIT license. from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - from distutils.version import StrictVersion
from pywikibot.tools import ip diff --git a/tests/tools_tests.py b/tests/tools_tests.py index c450966..bb57c87 100644 --- a/tests/tools_tests.py +++ b/tests/tools_tests.py @@ -7,8 +7,6 @@ # Distributed under the terms of the MIT license. from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import collections import decimal import inspect diff --git a/tests/ui_options_tests.py b/tests/ui_options_tests.py index 0a7d8c7..db01c3e 100644 --- a/tests/ui_options_tests.py +++ b/tests/ui_options_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# from pywikibot import bot, bot_choice
from tests.aspects import unittest, TestCase diff --git a/tests/ui_tests.py b/tests/ui_tests.py index 1a52166..4f27e30 100644 --- a/tests/ui_tests.py +++ b/tests/ui_tests.py @@ -26,8 +26,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import inspect import io import logging diff --git a/tests/upload_tests.py b/tests/upload_tests.py index fb830dd..dc3ec5b 100644 --- a/tests/upload_tests.py +++ b/tests/upload_tests.py @@ -11,8 +11,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import pywikibot
from tests import join_images_path diff --git a/tests/uploadbot_tests.py b/tests/uploadbot_tests.py index 769b65e..8481c28 100644 --- a/tests/uploadbot_tests.py +++ b/tests/uploadbot_tests.py @@ -11,9 +11,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import os
from scripts import upload diff --git a/tests/user_tests.py b/tests/user_tests.py index 1ca961f..60995e5 100644 --- a/tests/user_tests.py +++ b/tests/user_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import pywikibot
from pywikibot import User diff --git a/tests/utils.py b/tests/utils.py index 024f1d5..f73f48e 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -6,8 +6,7 @@ # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' -# + import inspect import json import locale diff --git a/tests/weblib_tests.py b/tests/weblib_tests.py index 0d1d661..33f88bb 100644 --- a/tests/weblib_tests.py +++ b/tests/weblib_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - from pywikibot.tools import PY2
if not PY2: diff --git a/tests/weblinkchecker_tests.py b/tests/weblinkchecker_tests.py index 56be6d7..be84bab 100644 --- a/tests/weblinkchecker_tests.py +++ b/tests/weblinkchecker_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import datetime
from pywikibot.tools import PY2 diff --git a/tests/wikibase_edit_tests.py b/tests/wikibase_edit_tests.py index f503b7f..20a4a77 100644 --- a/tests/wikibase_edit_tests.py +++ b/tests/wikibase_edit_tests.py @@ -12,9 +12,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import time
import pywikibot diff --git a/tests/wikibase_tests.py b/tests/wikibase_tests.py index f4a155a..8cdaf70 100644 --- a/tests/wikibase_tests.py +++ b/tests/wikibase_tests.py @@ -7,9 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import copy import json
diff --git a/tests/wikidataquery_tests.py b/tests/wikidataquery_tests.py index 075612a..3693104 100644 --- a/tests/wikidataquery_tests.py +++ b/tests/wikidataquery_tests.py @@ -7,9 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import os import time
diff --git a/tests/wikistats_tests.py b/tests/wikistats_tests.py index ad2ba74..f866eaf 100644 --- a/tests/wikistats_tests.py +++ b/tests/wikistats_tests.py @@ -7,9 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import sys
from pywikibot.data.wikistats import WikiStats, csv diff --git a/tests/xmlreader_tests.py b/tests/xmlreader_tests.py index ac6cfe9..dae9ff5 100644 --- a/tests/xmlreader_tests.py +++ b/tests/xmlreader_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - from pywikibot import xmlreader
from tests import join_xml_data_path
pywikibot-commits@lists.wikimedia.org