1
0
Fork 0

Remove retrying.

This commit is contained in:
Irina Truong 2017-10-06 11:54:42 -07:00
parent 1a6d39835d
commit 952eb9f93b
2 changed files with 2 additions and 9 deletions

View File

@ -6,7 +6,6 @@ pexpect==3.3
coverage==4.3.4
codecov>=1.5.1
docutils>=0.13.1
retrying>=1.3.3
# we want the latest possible version of pep8radius
git+https://github.com/hayd/pep8radius.git

View File

@ -5,7 +5,6 @@ import os.path
import wrappers
from behave import when, then
from retrying import retry
@when('we start external editor providing a file name')
@ -76,13 +75,8 @@ def step_notee_output(context):
@then(u'we see 123456 in tee output')
def step_see_123456_in_ouput(context):
@retry(stop_max_delay=3000) # stop trying after 3 seconds
def assert_tee_output():
with open(context.tee_file_name) as f:
assert '123456' in f.read()
assert_tee_output()
with open(context.tee_file_name) as f:
assert '123456' in f.read()
if os.path.exists(context.tee_file_name):
os.remove(context.tee_file_name)
context.atprompt = True