diff -Nur ansible-2.9.24/test/lib/ansible_test/_internal/units/__init__.py ansible-2.9.24_bak/test/lib/ansible_test/_internal/units/__init__.py
--- ansible-2.9.24/test/lib/ansible_test/_internal/units/__init__.py	2021-07-20 07:51:26.000000000 +0800
+++ ansible-2.9.24_bak/test/lib/ansible_test/_internal/units/__init__.py	2021-09-03 10:21:13.075845432 +0800
@@ -108,10 +108,6 @@
         if not data_context().content.collection:
             cmd.append('--durations=25')
 
-        if version != '2.6':
-            # added in pytest 4.5.0, which requires python 2.7+
-            cmd.append('--strict-markers')
-
         plugins = []
 
         if args.coverage:
