@tag('important')
def test_compile_nrt(self):
    with self.check_cc_compiled(self._test_module.cc_nrt) as lib:
        self.assertPreciseEqual(lib.zero_scalar(1), 0.0)
        res = lib.zeros(3)
        self.assertEqual(list(res), [0, 0, 0])
        if has_blas:
            res = lib.vector_dot(4)
            self.assertPreciseEqual(res, 30.0)
        code = ('if 1:\n                res = lib.zero_scalar(1)\n                assert res == 0.0\n                res = lib.zeros(3)\n                assert list(res) == [0, 0, 0]\n                if %(has_blas)s:\n                    res = lib.vector_dot(4)\n                    assert res == 30.0\n                ' % dict(has_blas=has_blas))
        self.check_cc_compiled_in_subprocess(lib, code)
@tag('important')
def test_compile_nrt(self):
    with self.check_cc_compiled(self._test_module.cc_nrt) as lib:
        self.assertPreciseEqual(lib.zero_scalar(1), 0.0)
        res = lib.zeros(3)
        self.assertEqual(list(res), [0, 0, 0])
        if has_blas:
            res = lib.vector_dot(4)
            self.assertPreciseEqual(res, 30.0)
        code = ('if 1:\n                res = lib.zero_scalar(1)\n                assert res == 0.0\n                res = lib.zeros(3)\n                assert list(res) == [0, 0, 0]\n                if %(has_blas)s:\n                    res = lib.vector_dot(4)\n                    assert res == 30.0\n                ' % dict(has_blas=has_blas))
        self.check_cc_compiled_in_subprocess(lib, code)