File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ def test_commitizen_excepthook(capsys):
88
88
with pytest .raises (SystemExit ) as excinfo :
89
89
cli .commitizen_excepthook (NotAGitProjectError , NotAGitProjectError (), "" )
90
90
91
- assert excinfo .type == SystemExit
91
+ assert excinfo .type is SystemExit
92
92
assert excinfo .value .code == NotAGitProjectError .exit_code
93
93
94
94
@@ -101,7 +101,7 @@ def test_commitizen_debug_excepthook(capsys):
101
101
debug = True ,
102
102
)
103
103
104
- assert excinfo .type == SystemExit
104
+ assert excinfo .type is SystemExit
105
105
assert excinfo .value .code == NotAGitProjectError .exit_code
106
106
assert "NotAGitProjectError" in str (excinfo .traceback [0 ])
107
107
@@ -132,7 +132,7 @@ def test_commitizen_excepthook_no_raises(capsys):
132
132
no_raise = [NotAGitProjectError .exit_code ],
133
133
)
134
134
135
- assert excinfo .type == SystemExit
135
+ assert excinfo .type is SystemExit
136
136
assert excinfo .value .code == 0
137
137
138
138
You can’t perform that action at this time.
0 commit comments