diff --git a/meta-python/recipes-devtools/python/python3-yarl/run-ptest b/meta-python/recipes-devtools/python/python3-yarl/run-ptest
deleted file mode 100644
index 8d2017d39..000000000
--- a/meta-python/recipes-devtools/python/python3-yarl/run-ptest
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-yarl_1.18.3.bb b/meta-python/recipes-devtools/python/python3-yarl_1.18.3.bb
index 8db97093c..5370573a3 100644
--- a/meta-python/recipes-devtools/python/python3-yarl_1.18.3.bb
+++ b/meta-python/recipes-devtools/python/python3-yarl_1.18.3.bb
@@ -5,11 +5,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
 
 SRC_URI[sha256sum] = "ac1801c45cbf77b6c99242eeff4fffb5e4e73a800b5c4ad4fc0be5def634d2e1"
 
-SRC_URI += "file://run-ptest"
-
 PYPI_PACKAGE = "yarl"
 
-inherit pypi ptest python_setuptools_build_meta cython
+inherit pypi ptest-python-pytest python_setuptools_build_meta cython
 
 DEPENDS += " \
     python3-expandvars-native \
@@ -31,7 +29,3 @@ RDEPENDS:${PN}-ptest += " \
     python3-unittest-automake-output \
 "
 
-do_install_ptest() {
-    install -d ${D}${PTEST_PATH}/tests
-    cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
-}
