[Pytest-commit] Issue #563: unrelated multiline comments shown in source (hpk42/pytest)

Thomas Tanner issues-reply at bitbucket.org
Tue Aug 12 13:35:00 CEST 2014


New issue 563: unrelated multiline comments shown in source
https://bitbucket.org/hpk42/pytest/issue/563/unrelated-multiline-comments-shown-in

Thomas Tanner:

Unrelated multiline comments are shown in the source display,
while single line comments or strings are correctly hidden.

example:

```
#!python

def test():
    "function comment"
    assert False

"""
this should not appear
"""
```


```
#!python

platform darwin -- Python 2.7.8 -- py-1.4.23 -- pytest-2.6.1
plugins: bdd, pep8, cache, django, cov, xdist
collected 1 items

test.py F

=========================================================== FAILURES ===========================================================
_____________________________________________________________ test _____________________________________________________________

    def test():
        "function comment"
>       assert False

    """
    this should not appear
E   assert False

test.py:5: AssertionError
```




More information about the pytest-commit mailing list