Skip to content

Commit 67215ee

Browse files
author
konstantina
committed
Added parenthesis after if statements so that the code execution order is clearer.
1 parent c80a28c commit 67215ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codebender_testing/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ def comment_compile_libraries_examples(self, sketches, library_examples_dic={},
656656
log_entry = disqus_wrapper.handle_library_comment(library, current_date, log_entry, examples)
657657
self.create_log(log_file, log_entry, compile_type)
658658
toc = time.time()
659-
if toc - tic >= SAUCELABS_TIMEOUT_SECONDS:
659+
if (toc - tic) >= SAUCELABS_TIMEOUT_SECONDS:
660660
print '\nStopping tests to avoid saucelabs timeout'
661661
print 'Test duration:', int(toc - tic), 'sec'
662662
return
@@ -729,7 +729,7 @@ def comment_compile_libraries_examples(self, sketches, library_examples_dic={},
729729
sys.stdout.flush()
730730

731731
toc = time.time()
732-
if toc - tic >= SAUCELABS_TIMEOUT_SECONDS:
732+
if (toc - tic) >= SAUCELABS_TIMEOUT_SECONDS:
733733
print '\nStopping tests to avoid saucelabs timeout'
734734
print 'Test duration:', int(toc - tic), 'sec'
735735
return

0 commit comments

Comments
 (0)