Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTimofey <t.danshin@corp.mail.ru>2016-06-22 12:55:24 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-06-24 16:02:01 +0300
commit594adf4d31c80ecf38afd4f0eb90412eca97f614 (patch)
treedc06ca3ab2d67e27b5f9ffdf7def4d8a6c0a66e7 /tools
parent23fc544db87bcfed6e6e5f8296b9e976e9132e55 (diff)
Added the warning module.
Diffstat (limited to 'tools')
-rw-r--r--tools/python/integration_tests_runner.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/python/integration_tests_runner.py b/tools/python/integration_tests_runner.py
index f28e06f3ec..b326aadafc 100644
--- a/tools/python/integration_tests_runner.py
+++ b/tools/python/integration_tests_runner.py
@@ -6,6 +6,7 @@ import multiprocessing
from argparse import ArgumentParser
from os import path
import subprocess
+from warnings import warn
from run_desktop_tests import tests_on_disk
from Util import TemporaryDirectory
@@ -183,7 +184,7 @@ class IntegrationRunner:
setup_jenkins_console_logger()
if args.log_start_finish:
- multiprocessing.get_logger().warning("The -l option is now deprecated. Please, remove it from your build scripts. It may be removed at any time.")
+ warn("The -l option is now deprecated. Please, remove it from your build scripts. It may be removed at any time.")
def prepare_cli_parser(self):
@@ -217,7 +218,7 @@ class IntegrationRunner:
parser.add_argument(
"-l", "--log_start_finish",
dest="log_start_finish", action="store_true", default=False,
- help="Write to log each time a test starts or finishes. May be useful if you need to find out which of the tests runs for how long, and which test hang. May slow down the execution of tests."
+ help="DEPRECATED. Write to log each time a test starts or finishes. May be useful if you need to find out which of the tests runs for how long, and which test hang. May slow down the execution of tests."
)
return parser