diff --git a/tests/_trial_temp.lock b/tests/_trial_temp.lock new file mode 120000 index 0000000000000000000000000000000000000000..aa9f026430810c3b3fafa9a36aecbdeb64ca8e58 --- /dev/null +++ b/tests/_trial_temp.lock @@ -0,0 +1 @@ +13691 \ No newline at end of file diff --git a/tests/test_python.py b/tests/test_python.py index 80f0386002457cd936325e8762c1db246350e030..7bcd5ad36dac58067b72d9cac7dbde3563ad15d0 100644 --- a/tests/test_python.py +++ b/tests/test_python.py @@ -21,6 +21,24 @@ def is_same(dir1, dir2): Compare two directory trees content. Return False if they differ, True is they are the same. """ + import glob + for f1 in glob.glob(dir1+"/**/*.*"): + rp = os.path.relpath(f1, dir1) + f2 = dir2 + "/"+rp + + with open(f1, 'r') as f: + s1 = f.read() + with open(f2, 'r') as f: + s2 = f.read() + + if s1 != s2: + print("*"*50) + print(f1) + print(s1) + print("-"*5) + print(s2) + return False + compared = dircmp(dir1, dir2) if (compared.left_only or compared.right_only or compared.diff_files or compared.funny_files):