def test_compile(self):
    with self.check_cc_compiled(self._test_module.cc) as lib:
        res = lib.multi(123, 321)
        self.assertPreciseEqual(res, (123 * 321))
        res = lib.multf(987, 321)
        self.assertPreciseEqual(res, (987.0 * 321.0))
        res = lib.square(5)
        self.assertPreciseEqual(res, 25)
        self.assertIs(lib.get_none(), None)
        with self.assertRaises(ZeroDivisionError):
            lib.div(1, 0)
def test_compile(self):
    with self.check_cc_compiled(self._test_module.cc) as lib:
        res = lib.multi(123, 321)
        self.assertPreciseEqual(res, (123 * 321))
        res = lib.multf(987, 321)
        self.assertPreciseEqual(res, (987.0 * 321.0))
        res = lib.square(5)
        self.assertPreciseEqual(res, 25)
        self.assertIs(lib.get_none(), None)
        with self.assertRaises(ZeroDivisionError):
            lib.div(1, 0)