diff --git a/lldb/test/CMakeLists.txt b/lldb/test/CMakeLists.txt
index 19d844a52b9a..f495eb262243 100644
--- a/lldb/test/CMakeLists.txt
+++ b/lldb/test/CMakeLists.txt
@@ -49,7 +49,7 @@ set(LLDB_DOSEP_ARGS
 # If tests crash cause LLDB to crash, or things are otherwise unstable, or if machine-parsable
 # output is desired (i.e. in continuous integration contexts) check-lldb-sep is a better target.
 add_python_test_target(check-lldb
-  ${LLDB_SOURCE_DIR}/test/dosep.ty
+  ${LLDB_SOURCE_DIR}/test/dosep.py
   "${LLDB_DOSEP_ARGS}"
   "Testing LLDB (with a separate subprocess per test)"
   )
diff --git a/lldb/test/Makefile b/lldb/test/Makefile
index d298131d54c1..fa3eacc5984b 100644
--- a/lldb/test/Makefile
+++ b/lldb/test/Makefile
@@ -30,4 +30,4 @@ clean::
 #----------------------------------------------------------------------
 check-local::
 	rm -rf lldb-test-traces
-	python $(PROJ_SRC_DIR)/dosep.ty -o "--executable $(ToolDir)/lldb -q -s lldb-test-traces -u CXXFLAGS -u CFLAGS -C $(subst ccache,,$(CC))"
+	python $(PROJ_SRC_DIR)/dosep.py -o "--executable $(ToolDir)/lldb -q -s lldb-test-traces -u CXXFLAGS -u CFLAGS -C $(subst ccache,,$(CC))"
diff --git a/lldb/test/dosep.ty b/lldb/test/dosep.py
similarity index 100%
rename from lldb/test/dosep.ty
rename to lldb/test/dosep.py