Skip to content

Commit 1297e2c

Browse files
committed
Simplify KeyboardInterrupt check in test_arrow_c_stream_interrupted
1 parent 0fa8178 commit 1297e2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/tests/test_dataframe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3350,7 +3350,7 @@ def read_stream():
33503350

33513351
# Check if we got the expected KeyboardInterrupt
33523352
if read_exception:
3353-
if isinstance(read_exception[0], type) and read_exception[0] == KeyboardInterrupt:
3353+
if isinstance(read_exception[0], KeyboardInterrupt):
33543354
interrupted = True
33553355
elif "KeyboardInterrupt" in str(read_exception[0]):
33563356
interrupted = True

0 commit comments

Comments
 (0)