diff --git a/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
new file mode 100644
index 0000000000..fa98212711
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+pytest --automake \
+       --deselect tests/test_pytest_plugin.py::test_import_before_pytest_main
diff --git a/meta-python/recipes-devtools/python/python3-platformdirs_4.10.1.bb b/meta-python/recipes-devtools/python/python3-platformdirs_4.13.5.bb
similarity index 80%
rename from meta-python/recipes-devtools/python/python3-platformdirs_4.10.1.bb
rename to meta-python/recipes-devtools/python/python3-platformdirs_4.13.5.bb
index 7c004a1ed3..40c7b25333 100644
--- a/meta-python/recipes-devtools/python/python3-platformdirs_4.10.1.bb
+++ b/meta-python/recipes-devtools/python/python3-platformdirs_4.13.5.bb
@@ -3,10 +3,12 @@ HOMEPAGE = "https://github.com/platformdirs/platformdirs"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=ea4f5a41454746a9ed111e3d8723d17a"
 
-SRC_URI[sha256sum] = "ceab4084426fe6319ce18e86deada8ab1b7487c7aee7040c55e277c9ae793695"
+SRC_URI[sha256sum] = "05831adf87d392760f4b5c3a0a95579ab5a10b18b9b9bd43680dcb47544788a0"
 
 inherit pypi python_hatchling ptest-python-pytest
 
+SRC_URI += "file://run-ptest"
+
 DEPENDS += " \
     python3-hatch-vcs-native \
 "
