Skip to content

Commit

Permalink
remove shaky GNU Octave test
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Oct 21, 2020
1 parent 5f10836 commit 6fb3374
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/tests/test_shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@
raise ValueError(f"h5py: expected {c_order} but got {f[var].shape}")
print("OK: Python h5py")

if shutil.which("octave-cli"):
cmd = f"dat=load('{fn}'); soct = size(dat.{var[1:]}); assert(all(soct == {list(f_order)}), 'expected {f_order}')"
print(cmd)
subprocess.check_call(["octave-cli", "--eval", cmd])
print("OK: GNU Octave")

if shutil.which("matlab"):
cmd = f"i=h5info('{fn}', '{var}'); smat = i.Dataspace.Size; assert(all(smat == {list(f_order)}), 'expected {f_order}')"
subprocess.check_call(["matlab", "-batch", cmd])
Expand Down

0 comments on commit 6fb3374

Please sign in to comment.