Replace fprintf with exception
This commit is contained in:
parent
b28a127d27
commit
8eb6a34d54
4 changed files with 40 additions and 19 deletions
|
|
@ -42,6 +42,11 @@ class TestTargetMachines(unittest.TestCase):
|
|||
m.verify()
|
||||
return m, func
|
||||
|
||||
def _build_bad_archname(self):
|
||||
with self.assertRaises(RuntimeError):
|
||||
tm = TargetMachine.lookup("ain't no arch name")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue