X Tutup
Skip to content

Commit e7e1736

Browse files
committed
Tighten a test by adding a fail().
1 parent f695068 commit e7e1736

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bpython/test/test_repl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ def assert_get_source_error_for_current_function(self, func, msg):
223223
self.repl.get_source_of_current_name()
224224
except repl.SourceNotFound as e:
225225
self.assertEqual(e.args[0], msg)
226+
else:
227+
self.fail("Should have raised SourceNotFound")
226228

227229
def test_current_function(self):
228230
self.set_input_line('INPUTLINE')

0 commit comments

Comments
 (0)
X Tutup