From 1597456b562d034d01abeb6b8dcc9e05ec00a1da Mon Sep 17 00:00:00 2001
From: Markus Holzer <markus.holzer@fau.de>
Date: Wed, 9 Feb 2022 14:09:02 +0100
Subject: [PATCH] Delete sympy simplification test

---
 pystencils_tests/test_astnodes.py | 24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/pystencils_tests/test_astnodes.py b/pystencils_tests/test_astnodes.py
index 18977cee5..91c11d8ec 100644
--- a/pystencils_tests/test_astnodes.py
+++ b/pystencils_tests/test_astnodes.py
@@ -86,27 +86,3 @@ def test_loop_over_coordinate():
     assert loop.stop == 20
     assert loop.step == 2
 
-
-@pytest.mark.parametrize('default_assignment_simplifications', [False, True])
-@pytest.mark.skipif(python_version == '3.8.2', reason="For this python version a strange bug in mpmath occurs")
-def test_sympy_assignment(default_assignment_simplifications):
-    assignment = SympyAssignment(dst[0, 0](0), sp.log(x + 3) / sp.log(2) + sp.log(x ** 2 + 1))
-
-    config = pystencils.config.CreateKernelConfig(default_assignment_simplifications=default_assignment_simplifications)
-    ast = ps.create_kernel([assignment], config=config)
-    code = ps.get_code_str(ast)
-        
-    if default_assignment_simplifications:
-        assert 'log1p' in code
-        # constant term is directly evaluated
-        assert 'log2' not in code
-    else:
-        # no optimisations will be applied so the optimised version of log will not be in the code
-        assert 'log1p' not in code
-        assert 'log2' not in code
-
-    assignment.replace(assignment.lhs, dst[0, 0](1))
-    assignment.replace(assignment.rhs, sp.log(2))
-
-    assert assignment.lhs == dst[0, 0](1)
-    assert assignment.rhs == sp.log(2)
-- 
GitLab