Skip to content

Commit c434f67

Browse files
flip my missunderstood boolean logic around
1 parent 285ca54 commit c434f67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def call_runtest_hook(item, when, **kwds):
194194
return CallInfo.from_call(
195195
lambda: ihook(item=item, **kwds),
196196
when=when,
197-
reraise=KeyboardInterrupt if item.config.getvalue("usepdb") else (),
197+
reraise=KeyboardInterrupt if not item.config.getvalue("usepdb") else (),
198198
)
199199

200200

0 commit comments

Comments
 (0)