diff options
Diffstat (limited to 'tests/test_git_command.py')
| -rw-r--r-- | tests/test_git_command.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_git_command.py b/tests/test_git_command.py index 1e8beabc..3dd31b29 100644 --- a/tests/test_git_command.py +++ b/tests/test_git_command.py | |||
| @@ -204,12 +204,12 @@ class GitRequireTests(unittest.TestCase): | |||
| 204 | 204 | ||
| 205 | def test_older_fatal(self): | 205 | def test_older_fatal(self): |
| 206 | """Test fatal require calls with old versions.""" | 206 | """Test fatal require calls with old versions.""" |
| 207 | with self.assertRaises(SystemExit) as e: | 207 | with self.assertRaises(git_command.GitRequireError) as e: |
| 208 | git_command.git_require((2,), fail=True) | 208 | git_command.git_require((2,), fail=True) |
| 209 | self.assertNotEqual(0, e.code) | 209 | self.assertNotEqual(0, e.code) |
| 210 | 210 | ||
| 211 | def test_older_fatal_msg(self): | 211 | def test_older_fatal_msg(self): |
| 212 | """Test fatal require calls with old versions and message.""" | 212 | """Test fatal require calls with old versions and message.""" |
| 213 | with self.assertRaises(SystemExit) as e: | 213 | with self.assertRaises(git_command.GitRequireError) as e: |
| 214 | git_command.git_require((2,), fail=True, msg="so sad") | 214 | git_command.git_require((2,), fail=True, msg="so sad") |
| 215 | self.assertNotEqual(0, e.code) | 215 | self.assertNotEqual(0, e.code) |
