diff --git a/test/test_compatible_exe.py b/test/test_compatible_exe.py
index d8e0f2ac..0bd3f806 100644
--- a/test/test_compatible_exe.py
+++ b/test/test_compatible_exe.py
@@ -105,7 +105,11 @@ def is_dynamically_linked(executable):
             universal_newlines=True,
         )
         print_completed_proc(proc)
-        return "libpython" in proc.stdout or "/Python" in proc.stdout
+        return (
+            "libpython" in proc.stdout
+            or "/Python" in proc.stdout
+            or "/.Python" in proc.stdout
+        )
     # TODO: support Windows
     return None