File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ def test_no_widget_view():
20
20
msg = w ._repr_mimebundle_ ()
21
21
display (w )
22
22
23
- if version_info [ 0 ] > 6 or ( version_info [ 0 ] == 6 and version_info [ 1 ] >= 1 ):
23
+ if version_info >= ( 6 , 1 ):
24
24
assert len (cap .outputs ) == 1 and cap .outputs [0 ].data == msg , repr (cap .outputs )
25
25
else :
26
26
assert cap .outputs == [], repr (cap .outputs )
Original file line number Diff line number Diff line change @@ -730,8 +730,7 @@ def _ipython_display_(self, **kwargs):
730
730
Note: if we are in IPython 6.1 or later, we return NotImplemented so
731
731
that _repr_mimebundle_ is used directly.
732
732
"""
733
- if (ipython_version_info [0 ] > 6
734
- or (ipython_version_info [0 ] == 6 and ipython_version_info [1 ] >= 1 )):
733
+ if ipython_version_info >= (6 , 1 ):
735
734
raise NotImplementedError
736
735
737
736
data = self ._repr_mimebundle_ (** kwargs )
You can’t perform that action at this time.
0 commit comments