Commit b1b537cd authored by Anton Akhmerov's avatar Anton Akhmerov

verify that wraparound emits a warning

parent 85210ec0
Pipeline #14343 canceled with stages
in 19 minutes and 43 seconds
......@@ -261,7 +261,7 @@ def test_spectrum():
params=dict(c=1), fig_size=(10, 10), file=out)
# test 2D plot and explicitly passing axis
fig = pyplot.Figure()
fig = pyplot.figure()
ax = fig.add_subplot(1, 1, 1, projection='3d')
plotter.spectrum(ham_1d, ('a', vals), ('b', 2 * vals),
params=dict(c=1), ax=ax, file=out)
......
......@@ -166,7 +166,8 @@ def test_symmetry():
syst.particle_hole = ph
syst.time_reversal = tr
wrapped = wraparound(syst)
with pytest.warns(RuntimeWarning):
wrapped = wraparound(syst)
assert wrapped.time_reversal is None
assert wrapped.particle_hole is None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment