Skip to content

Commit

Permalink
Properly test for marker
Browse files Browse the repository at this point in the history
Use --mflake8 when testing for (and expecting failure with --strict)
that marker has not been properly registered.
  • Loading branch information
tholo committed Mar 19, 2018
1 parent e03172e commit d5535bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.egg-info/
.pytest_cache/
*.pyc
*.sublime-workspace
.cache/
Expand Down
2 changes: 1 addition & 1 deletion test_flake8.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def test_unicode_error(testdir):
@pytest.mark.xfail(reason="flake8 is not properly registered as a marker")
def test_strict(testdir):
testdir.makepyfile("")
result = testdir.runpytest("--strict", "--flake8")
result = testdir.runpytest("--strict", "--mflake8")
result.assert_outcomes(passed=1)


Expand Down

0 comments on commit d5535bb

Please sign in to comment.