Skip to content

Commit

Permalink
issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Weixuan Fu committed Jun 28, 2017
1 parent b2ad67a commit 29050da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/driver_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def test_driver():
ret_stdout = subprocess.check_output(batcmd, shell=True)
try:
ret_val = float(ret_stdout.decode('UTF-8').split('\n')[-2].split(': ')[-1])
except Exception:

except Exception as e:
ret_val = -float('inf')
assert ret_val > 0.0

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/tpot_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def test_read_config_file_2():
def test_read_config_file_3():
"""Assert that _read_config_file rasie ValueError with wrong dictionary format"""
tpot_obj = TPOTRegressor()
assert_raises(ValueError, tpot_obj._read_config_file, "tests/test_bad_config.py")
assert_raises(ValueError, tpot_obj._read_config_file, "tests/test_config.py.bad")


def test_random_ind():
Expand Down

0 comments on commit 29050da

Please sign in to comment.