"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tools/upgrade/tests/errors_test.py" between
pyre-check-0.0.53.tar.gz and pyre-check-0.0.54.tar.gz

About: Pyre is a performant type checker for Python (ships with Pysa, a security focused static analysis tool).

errors_test.py  (pyre-check-0.0.53):errors_test.py  (pyre-check-0.0.54)
skipping to change at line 412 skipping to change at line 412
""", """,
""" """
def foo() -> None: def foo() -> None:
x = (something + x = (something +
# FIXME[1]: description # FIXME[1]: description
error() + error() +
# FIXME[2]: description # FIXME[2]: description
error()) # unrelated comment error()) # unrelated comment
""", """,
) )
self.assertSuppressErrors(
{3: [{"code": "1", "description": "description"}]},
"""
def foo() -> None:
x, y, z = \\
error()
""",
"""
def foo() -> None:
x, y, z = (
# FIXME[1]: description
error())
""",
)
self.assertSuppressErrors(
{3: [{"code": "1", "description": "description"}]},
"""
def foo() -> None:
del \\
error
""",
"""
def foo() -> None:
del (
# FIXME[1]: description
error)
""",
)
self.assertSuppressErrors(
{3: [{"code": "1", "description": "description"}]},
"""
def foo() -> None:
assert \\
test
""",
"""
def foo() -> None:
assert (
# FIXME[1]: description
test)
""",
)
self.assertSuppressErrors(
{3: [{"code": "1", "description": "description"}]},
"""
def foo() -> None:
assert test + \\
test2
""",
"""
def foo() -> None:
assert (test +
# FIXME[1]: description
test2)
""",
)
self.assertSuppressErrors(
{3: [{"code": "1", "description": "description"}]},
"""
def foo() -> None:
raise \\
Exception()
""",
"""
def foo() -> None:
raise (
# FIXME[1]: description
Exception())
""",
)
self.assertSuppressErrors(
{3: [{"code": "1", "description": "description"}]},
"""
def foo() -> None:
return a + \\
error
""",
"""
def foo() -> None:
return (a +
# FIXME[1]: description
error)
""",
)
self.assertSuppressErrors(
{3: [{"code": "1", "description": "description"}]},
"""
def foo() -> None:
return \\
error
""",
"""
def foo() -> None:
return (
# FIXME[1]: description
error)
""",
)
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)