Skip to content
Snippets Groups Projects
Verified Commit b1b537cd authored by Anton Akhmerov's avatar Anton Akhmerov
Browse files

verify that wraparound emits a warning

parent 85210ec0
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment