Skip to content

Commit

Permalink
Merge pull request #3670 from asottile/remove_unused_fix_lint
Browse files Browse the repository at this point in the history
Remove unused fix-lint tox environment
  • Loading branch information
nicoddemus authored Jul 10, 2018
2 parents 898544e + af00590 commit 593b451
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 36 deletions.
16 changes: 16 additions & 0 deletions testing/code/test_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,3 +744,19 @@ def XXX_test_expression_multiline():
'''"""
result = getstatement(1, source)
assert str(result) == "'''\n'''"


def test_getstartingblock_multiline():
class A(object):
def __init__(self, *args):
frame = sys._getframe(1)
self.source = _pytest._code.Frame(frame).statement

# fmt: off
x = A('x',
'y'
,
'z')
# fmt: on
values = [i for i in x.source.lines if i.strip()]
assert len(values) == 4
28 changes: 0 additions & 28 deletions testing/code/test_source_multiline_block.py

This file was deleted.

8 changes: 0 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,6 @@ commands =
rm -rf /tmp/doc-exec*
make regen

[testenv:fix-lint]
skipsdist = True
usedevelop = True
deps =
autopep8
commands =
autopep8 --in-place -r --max-line-length=120 --exclude=test_source_multiline_block.py _pytest testing setup.py pytest.py

[testenv:jython]
changedir = testing
commands =
Expand Down

0 comments on commit 593b451

Please sign in to comment.