File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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):
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
You can’t perform that action at this time.
0 commit comments