diff --git a/tests/test_native_tensorflow_compilation.py b/tests/test_native_tensorflow_compilation.py
index c7ec86c4ac8ccae03b3640192f86f47b5c2791a4..37f703448ca07b86c7a2240e66d4aaff24d27565 100644
--- a/tests/test_native_tensorflow_compilation.py
+++ b/tests/test_native_tensorflow_compilation.py
@@ -116,7 +116,6 @@ def test_native_tensorflow_compilation_gpu():
     temp_file = tempfile.NamedTemporaryFile(suffix='.cu' if target == 'gpu' else '.cpp')
     print(temp_file.name)
     _write_file(temp_file.name, str(module))
-    _write_file('/tmp/foo.cpp', str(module))
 
     # on my machine g++-6 and clang-7 are working
     command = ['nvcc',