From: salimfadhley Date: Sat, 15 Jun 2013 21:33:06 +0000 (+0100) Subject: Get rid of the global - it's not needed any more. X-Git-Tag: v0.2.23~185 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6cb94ba02cc320d562f634062526e9ccfe6fcc05;p=tools%2Fpython-jenkinsapi.git Get rid of the global - it's not needed any more. --- diff --git a/jenkinsapi_tests/systests/__init__.py b/jenkinsapi_tests/systests/__init__.py index 6e5691a..a5f078f 100644 --- a/jenkinsapi_tests/systests/__init__.py +++ b/jenkinsapi_tests/systests/__init__.py @@ -1,18 +1,12 @@ import os from jenkinsapi_utils.jenkins_launcher import JenkinsLancher - -launcher = None - +systests_dir, _ = os.path.split(__file__) +war_path = os.path.join(systests_dir, 'jenkins.war' ) +launcher = JenkinsLancher(war_path) def setUpPackage(): - global launcher - - systests_dir, _ = os.path.split(__file__) - war_path = os.path.join(systests_dir, 'jenkins.war' ) - launcher = JenkinsLancher(war_path) launcher.start() - def tearDownPackage(): launcher.stop()