Skip to content

Commit

Permalink
Fix issues in arbor tests, wrt to sorted dir content etc
Browse files Browse the repository at this point in the history
  • Loading branch information
wvangeit committed Mar 22, 2024
1 parent 1a78f86 commit 74ca998
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bluepyopt/tests/test_ephys/test_create_acc.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def test_cell_model_create_acc_replace_axon_without_instantiate():


def check_acc_dir(test_dir, ref_dir):
assert os.listdir(ref_dir) == os.listdir(test_dir)
assert sorted(os.listdir(ref_dir)) == sorted(os.listdir(test_dir))

ref_dir_ver_suffix = "_py" + "".join(sys.version.split(".")[:2])
ref_dir_ver = ref_dir.parent / (ref_dir.name + ref_dir_ver_suffix)
Expand Down Expand Up @@ -699,8 +699,7 @@ def test_write_acc_simple():
)

check_acc_dir(test_dir, ref_dir)
except Exception as e: # fail with an older Arbor version
assert isinstance(e, NotImplementedError)
except NotImplementedError as e: # fail with an older Arbor version
assert (
len(e.args) == 1
and e.args[0]
Expand Down

0 comments on commit 74ca998

Please sign in to comment.