1diff --git a/tests/examples_test.py b/tests/examples_test.py
2index 77204fd..9784389 100644
3--- a/tests/examples_test.py
4+++ b/tests/examples_test.py
5@@ -48,14 +48,19 @@ class ExamplesTest(unittest.TestCase):
6 subprocess.check_call(["python3", f.as_posix()])
7 # copy generated scad file to examples_scad/
8 copyWithRelativeIncludes(f.with_suffix(".scad"), test_scad_file)
9- # call git diff test/examples_scad/{f}.scad
10- diff = subprocess.check_output(["git", "diff",
11- test_scad_file.as_posix()])
12- # make sure there's no diff
13- self.assertEqual(diff.decode(), "")
14- # render with openscad
15- subprocess.check_call([get_openscad_executable(), "-o",
16- test_scad_file.with_suffix(".png"),
17- "--preview", "-",
18- test_scad_file],
19- stderr=subprocess.DEVNULL)
20+ subprocess.check_call(
21+ [
22+ "sed",
23+ "-i",
24+ f"s#^include <.*/solid2#include <../../solid2#g",
25+ test_scad_file.as_posix(),
26+ ]
27+ )
28+ nixsrc = os.getenv("src")
29+ subprocess.check_call(
30+ [
31+ "diff",
32+ f"{nixsrc}/tests/examples_scad/{f.with_suffix('.scad').name}",
33+ test_scad_file.as_posix(),
34+ ]
35+ )