Skip to content

Commit

Permalink
Merge pull request #90 from nschloe/sys
Browse files Browse the repository at this point in the history
import sys
  • Loading branch information
nschloe authored Jun 8, 2022
2 parents b2bab38 + 11ce3e8 commit a8b7229
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pytest_codeblocks/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.16.0"
__version__ = "0.16.1"
7 changes: 7 additions & 0 deletions src/pytest_codeblocks/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ def collect(self):
out.obj = block

for mark in block.marks:
# A common thing is
#
# pytest.mark.skipif(sys.version_info < (3, 10), reason="...")
#
# which needs sys. Import it here.
import sys

out.add_marker(eval(mark))

yield out
Expand Down

0 comments on commit a8b7229

Please sign in to comment.