Skip to content

Commit

Permalink
Merge pull request #1587 from WilliamHPNielsen/fix/weird_travis_test_…
Browse files Browse the repository at this point in the history
…fail

Fix/weird travis test fail
  • Loading branch information
astafan8 authored Jun 3, 2019
2 parents e2bce7c + 8cb620b commit a4d027b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions qcodes/tests/dataset/helper_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ def verify_data_dict(data: Dict[str, Dict[str, np.ndarray]],
"""
# check that all the expected parameters in the dict are
# included in the list of parameters
assert all(param in parameter_names for param in list(data.keys())) is True
assert all(param in parameter_names for param in list(data.keys()))
if dataframe is not None:
assert all(param in parameter_names for
param in list(dataframe.keys())) is True
param in list(dataframe.keys()))
for param in parameter_names:
innerdata = data[param]
verify_data_dict_for_single_param(innerdata,
Expand Down
8 changes: 4 additions & 4 deletions qcodes/tests/drivers/test_ami430.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,9 @@ def test_field_limit_exception(current_driver):
current_driver.cartesian(set_point)

assert "field would exceed limit" in excinfo.value.args[0]
assert not all([a == b for a, b in zip(
current_driver.cartesian(), set_point
)])
vals_and_setpoints = zip(current_driver.cartesian(), set_point)
belief = not(all([val == sp for val, sp in vals_and_setpoints]))
assert belief


def test_cylindrical_poles(current_driver):
Expand Down Expand Up @@ -434,7 +434,7 @@ def test_ramp_rate_exception(current_driver):

def test_reducing_field_ramp_limit_reduces_a_higher_ramp_rate(ami430):
"""
When reducing field_ramp_limit, the actual ramp_rate should also be
When reducing field_ramp_limit, the actual ramp_rate should also be
reduced if the new field_ramp_limit is lower than the actual ramp_rate
now.
"""
Expand Down

0 comments on commit a4d027b

Please sign in to comment.