Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 974de65

Browse files
committed
test(cli): change type comparison to use is
1 parent 72cc602 commit 974de65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎tests/test_cli.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def test_commitizen_excepthook(capsys):
8888
with pytest.raises(SystemExit) as excinfo:
8989
cli.commitizen_excepthook(NotAGitProjectError, NotAGitProjectError(), "")
9090

91-
assert excinfo.type == SystemExit
91+
assert excinfo.type is SystemExit
9292
assert excinfo.value.code == NotAGitProjectError.exit_code
9393

9494

@@ -101,7 +101,7 @@ def test_commitizen_debug_excepthook(capsys):
101101
debug=True,
102102
)
103103

104-
assert excinfo.type == SystemExit
104+
assert excinfo.type is SystemExit
105105
assert excinfo.value.code == NotAGitProjectError.exit_code
106106
assert "NotAGitProjectError" in str(excinfo.traceback[0])
107107

@@ -132,7 +132,7 @@ def test_commitizen_excepthook_no_raises(capsys):
132132
no_raise=[NotAGitProjectError.exit_code],
133133
)
134134

135-
assert excinfo.type == SystemExit
135+
assert excinfo.type is SystemExit
136136
assert excinfo.value.code == 0
137137

138138

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /