Exemplo n.º 1
0
 def test_unimplemented(self, op, args):
     handler = semihost.SemihostIOHandler()
     with pytest.raises(NotImplementedError):
         handler.__getattribute__(op)(*args)
Exemplo n.º 2
0
def ioh(ctx):
    handler = semihost.SemihostIOHandler()
    agent = semihost.SemihostAgent(ctx, io_handler=handler)
    return handler, agent