Skip to content

Commit

Permalink
specify TraitError in test (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalkolar authored Nov 27, 2023
1 parent 3fd0dc6 commit a1b8b47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from pytest import raises
from jupyter_rfb import RemoteFrameBuffer
from jupyter_rfb._utils import Snapshot
from traitlets import TraitError


class MyRFB(RemoteFrameBuffer):
Expand Down Expand Up @@ -211,7 +212,7 @@ def test_widget_traits():
assert w.max_buffered_frames == 2
w.max_buffered_frames = 99
w.max_buffered_frames = 1
with raises(Exception): # TraitError -> min 1
with raises(TraitError): # TraitError -> min 1
w.max_buffered_frames = 0

assert w.css_width.endswith("px")
Expand Down

0 comments on commit a1b8b47

Please sign in to comment.