aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/pytest/py2/patches/06-support-ya-markers.patch
blob: 6dae352ef8b8bcd04da20aa8268c34fffeec9e90 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- contrib/python/pytest/py2/_pytest/mark/structures.py	(index)
+++ contrib/python/pytest/py2/_pytest/mark/structures.py	(working tree)
@@ -316,7 +316,10 @@ class MarkGenerator(object):
                     # example lines: "skipif(condition): skip the given test if..."
                     # or "hypothesis: tests which use Hypothesis", so to get the
                     # marker name we split on both `:` and `(`.
-                    marker = line.split(":")[0].split("(")[0].strip()
+                    if line == "ya:external":
+                        marker = line
+                    else:
+                        marker = line.split(":")[0].split("(")[0].strip()
                     self._markers.add(marker)
 
             # If the name is not in the set of known marks after updating,