Remove unused markers and enable --strict-markers
This commit is contained in:
@@ -11,7 +11,6 @@ import textwrap
|
||||
import py
|
||||
import six
|
||||
from six.moves import queue
|
||||
from test_source import astonly
|
||||
|
||||
import _pytest
|
||||
import pytest
|
||||
@@ -147,7 +146,6 @@ class TestTraceback_f_g_h(object):
|
||||
assert s.startswith("def f():")
|
||||
assert s.endswith("raise ValueError")
|
||||
|
||||
@astonly
|
||||
@failsonjython
|
||||
def test_traceback_entry_getsource_in_construct(self):
|
||||
source = _pytest._code.Source(
|
||||
|
||||
@@ -16,7 +16,6 @@ import _pytest._code
|
||||
import pytest
|
||||
from _pytest._code import Source
|
||||
|
||||
astonly = pytest.mark.nothing
|
||||
failsonjython = pytest.mark.xfail("sys.platform.startswith('java')")
|
||||
|
||||
|
||||
@@ -227,7 +226,6 @@ class TestSourceParsingAndCompiling(object):
|
||||
s = source.getstatement(1)
|
||||
assert s == str(source)
|
||||
|
||||
@astonly
|
||||
def test_getstatementrange_within_constructs(self):
|
||||
source = Source(
|
||||
"""\
|
||||
@@ -630,7 +628,6 @@ x = 3
|
||||
|
||||
|
||||
class TestTry(object):
|
||||
pytestmark = astonly
|
||||
source = """\
|
||||
try:
|
||||
raise ValueError
|
||||
@@ -675,7 +672,6 @@ finally:
|
||||
|
||||
|
||||
class TestIf(object):
|
||||
pytestmark = astonly
|
||||
source = """\
|
||||
if 1:
|
||||
y = 3
|
||||
|
||||
Reference in New Issue
Block a user