We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fa8178 commit 1297e2cCopy full SHA for 1297e2c
1 file changed
python/tests/test_dataframe.py
@@ -3350,7 +3350,7 @@ def read_stream():
3350
3351
# Check if we got the expected KeyboardInterrupt
3352
if read_exception:
3353
- if isinstance(read_exception[0], type) and read_exception[0] == KeyboardInterrupt:
+ if isinstance(read_exception[0], KeyboardInterrupt):
3354
interrupted = True
3355
elif "KeyboardInterrupt" in str(read_exception[0]):
3356
0 commit comments