def ConcreteActorLoggingTest(actor_class, event_class):
    class C(ActorLoggingTest, unittest.TestCase):

        class AnActor(AnActor, actor_class):
            pass

        class EarlyFailingActor(EarlyFailingActor, actor_class):
            pass

        class LateFailingActor(LateFailingActor, actor_class):
            pass

        class FailingOnFailureActor(FailingOnFailureActor, actor_class):
            pass

    C.event_class = event_class
    C.__name__ = actor_class.__name__ % '%sLoggingTest'
    return C
dataset/ETHPy150Open jodal/pykka/tests/logging_test.py/ConcreteActorLoggingTest/swapped operands of `%`