Remove unnecessary `# noqa` comments.
Commit automated with https://github.com/asottile/yesqa
This commit is contained in:
parent
672c901c70
commit
205e29d843
|
@ -542,7 +542,7 @@ raise ValueError()
|
||||||
tb = FakeRawTB()
|
tb = FakeRawTB()
|
||||||
excinfo.traceback = Traceback(tb)
|
excinfo.traceback = Traceback(tb)
|
||||||
|
|
||||||
fail = IOError() # noqa
|
fail = IOError()
|
||||||
repr = pr.repr_excinfo(excinfo)
|
repr = pr.repr_excinfo(excinfo)
|
||||||
assert repr.reprtraceback.reprentries[0].lines[0] == "> ???"
|
assert repr.reprtraceback.reprentries[0].lines[0] == "> ???"
|
||||||
if py.std.sys.version_info[0] >= 3:
|
if py.std.sys.version_info[0] >= 3:
|
||||||
|
|
|
@ -32,7 +32,7 @@ class TestSetupState(object):
|
||||||
def setup_module(mod):
|
def setup_module(mod):
|
||||||
raise ValueError(42)
|
raise ValueError(42)
|
||||||
def test_func(): pass
|
def test_func(): pass
|
||||||
""") # noqa
|
""")
|
||||||
ss = runner.SetupState()
|
ss = runner.SetupState()
|
||||||
pytest.raises(ValueError, lambda: ss.prepare(item))
|
pytest.raises(ValueError, lambda: ss.prepare(item))
|
||||||
pytest.raises(ValueError, lambda: ss.prepare(item))
|
pytest.raises(ValueError, lambda: ss.prepare(item))
|
||||||
|
@ -564,7 +564,7 @@ def test_importorskip(monkeypatch):
|
||||||
importorskip("asdlkj")
|
importorskip("asdlkj")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys = importorskip("sys") # noqa
|
sys = importorskip("sys")
|
||||||
assert sys == py.std.sys
|
assert sys == py.std.sys
|
||||||
# path = pytest.importorskip("os.path")
|
# path = pytest.importorskip("os.path")
|
||||||
# assert path == py.std.os.path
|
# assert path == py.std.os.path
|
||||||
|
|
|
@ -589,7 +589,7 @@ class TestSkipif(object):
|
||||||
@pytest.mark.skipif("hasattr(os, 'sep')")
|
@pytest.mark.skipif("hasattr(os, 'sep')")
|
||||||
def test_func():
|
def test_func():
|
||||||
pass
|
pass
|
||||||
""") # noqa
|
""")
|
||||||
x = pytest.raises(pytest.skip.Exception, lambda:
|
x = pytest.raises(pytest.skip.Exception, lambda:
|
||||||
pytest_runtest_setup(item))
|
pytest_runtest_setup(item))
|
||||||
assert x.value.msg == "condition: hasattr(os, 'sep')"
|
assert x.value.msg == "condition: hasattr(os, 'sep')"
|
||||||
|
|
Loading…
Reference in New Issue