From 4203fa7f03c49e3128a471efa863f84e96b33684 Mon Sep 17 00:00:00 2001
From: Martin Bauer <martin.bauer@fau.de>
Date: Mon, 21 Oct 2019 16:26:14 +0200
Subject: [PATCH] Removed hash equivalence test

---
 lbmpy_tests/test_code_hashequivalence.py | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/lbmpy_tests/test_code_hashequivalence.py b/lbmpy_tests/test_code_hashequivalence.py
index 8cf6fb0..8d7fd73 100644
--- a/lbmpy_tests/test_code_hashequivalence.py
+++ b/lbmpy_tests/test_code_hashequivalence.py
@@ -1,23 +1,9 @@
 from hashlib import sha256
 
 from lbmpy.creationfunctions import create_lb_ast
-from pystencils.backends.cbackend import generate_c
 from pystencils.llvm.llvmjit import generate_llvm
 
 
-def test_hash_equivalence():
-    """
-    This test should ensure that if the Python interpreter is called multiple times to generated the same method
-    exactly the same code (not only functionally equivalent code) should be produced.
-    Due to undefined order in sets and dicts this may no be the case.
-    """
-    ref_value = "902be811a587c52e24ce03ec78d3defbb87d58eaaafbb9b47f823b960319e4be"
-    ast = create_lb_ast(stencil='D3Q19', method='srt', optimization={'openmp': False})
-    code = generate_c(ast)
-    hash_value = sha256(code.encode()).hexdigest()
-    assert hash_value == ref_value
-
-
 def test_hash_equivalence_llvm():
     ref_value = "6db6ed9e2cbd05edae8fcaeb8168e3178dd578c2681133f3ae9228b23d2be432"
     ast = create_lb_ast(stencil='D3Q19', method='srt', optimization={'target': 'llvm'})
-- 
GitLab