File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -118,9 +118,7 @@ def make_regexes(
118
118
re .compile (
119
119
fr"{ regex_main } \s*\((?=\s*(py|PY|Py)3({ '|' .join (exact_versions )} )){ wrong_platforms_string } { wrong_implementations_string } .*\)"
120
120
),
121
- re .compile (
122
- fr"{ regex_main } \s*\({ wrong_platforms_string } { wrong_implementations_string } .*\)"
123
- ),
121
+ re .compile (fr"{ regex_main } \s*\({ wrong_platforms_string } { wrong_implementations_string } .*\)" ),
124
122
]
125
123
126
124
print (excludes )
@@ -156,7 +154,11 @@ def configure(self, config: Any) -> None:
156
154
# print(config.exclude_list)
157
155
158
156
# Reinstate the general regex, but making sure it isn't followed by a left bracket.
159
- config .exclude_list .append (re .compile (fr"{ regex_main } (?!\(.*(.{{0,2}}(py|PY|Py)3\d(\+)?|!{ platform .system ()} |!{ platform .python_implementation ()} ).*\)).*$" ).pattern )
157
+ config .exclude_list .append (
158
+ re .compile (
159
+ fr"{ regex_main } (?!\(.*(.{{0,2}}(py|PY|Py)3\d(\+)?|!{ platform .system ()} |!{ platform .python_implementation ()} ).*\)).*$"
160
+ ).pattern
161
+ )
160
162
161
163
# TODO: Python 4.X
162
164
Original file line number Diff line number Diff line change 1
1
# This file serves as a visual test that the conditional excludes are working correctly.
2
2
3
+ # stdlib
3
4
import sys
4
5
5
6
print ("This line should be excluded on Windows" ) # pragma: no cover (!Linux !Darwin)
You can’t perform that action at this time.
0 commit comments