Skip to content

Commit abfce98

Browse files
committed
Minor comment cleanups.
Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>
1 parent 2b6851d commit abfce98

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

test/chromium/script.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,39 +40,37 @@ class bcolors:
4040
chromeOps.add_argument('--no-sandbox')
4141
chromedriver_path = os.path.abspath("test/chromium/chromedriver")
4242

43-
# First argument is optional, if not specified will search path.
4443

4544
try:
45+
# First argument is optional, if not specified will search path.
4646
driver = webdriver.Chrome(chromedriver_path, chrome_options=chromeOps)
4747
except WebDriverException as e:
4848
error = e.__str__()
4949

5050
if "executable needs to be in PATH" in e.__str__():
51-
print "ChromeDriver isn't installed. Check test/chrome/README.md\
52-
for instructions on how to install ChromeDriver"
51+
print "ChromeDriver isn't installed. Check test/chrome/README.md " \
52+
"for instructions on how to install ChromeDriver"
5353

5454
sys.exit(2)
5555
else:
5656
raise e
5757

58-
print '' #New line
58+
print ''
5959

6060
driver.get('http://libssh.org/robots.txt')
6161

62-
#Page Loaded
63-
64-
failed = False
62+
test_failed = False
6563
if driver.current_url.startswith('https'):
6664
print bcolors.OKGREEN + "HTTP to HTTPS redirection successful" + bcolors.ENDC
6765
elif driver.current_url.startswith('http'):
6866
print bcolors.FAIL + "HTTP to HTTPS redirection failed" + bcolors.ENDC
69-
failed = True
67+
test_failed = True
7068
sys.exit(1)
7169

72-
print '' #New line
70+
print ''
7371

7472
driver.quit()
7573

7674

77-
if failed:
75+
if test_failed:
7876
sys.exit(1)

0 commit comments

Comments
 (0)