diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index 0e2133762ac00437fad98938b891732a2ca4cbb2..1fb68cb2fb238b61239aae51822799efd3a7747c 100644 --- a/pyopencl/__init__.py +++ b/pyopencl/__init__.py @@ -127,8 +127,8 @@ class Program(object): self._context, self._source, options, devices, cache_dir=cache_dir) - del self._context - del self._source + del self._context + del self._source return self diff --git a/test/test_clmath.py b/test/test_clmath.py index 1cea469ada55782886f367333e36e096c67314b5..765321340b6c8e11d6574804ce3d32358dd8111c 100644 --- a/test/test_clmath.py +++ b/test/test_clmath.py @@ -92,8 +92,8 @@ if have_cl(): test_log10 = make_unary_function_test("log10", (1e-5, 1), 5e-7) test_sqrt = make_unary_function_test("sqrt", (1e-5, 1), 3e-7, use_complex=True) - test_sin = make_unary_function_test("sin", (-10, 10), 2e-7, use_complex=2e-3) - test_cos = make_unary_function_test("cos", (-10, 10), 2e-7, use_complex=2e-3) + test_sin = make_unary_function_test("sin", (-10, 10), 2e-7, use_complex=2e-2) + test_cos = make_unary_function_test("cos", (-10, 10), 2e-7, use_complex=2e-2) test_asin = make_unary_function_test("asin", (-0.9, 0.9), 5e-7) test_acos = make_unary_function_test("acos", (-0.9, 0.9), 5e-7) test_tan = make_unary_function_test("tan",