Skip to content

Commit

Permalink
Self check fixes (#9494)
Browse files Browse the repository at this point in the history
The change to mypy.test.data is needed to work with the latest version
of pytest.
  • Loading branch information
JukkaL authored Sep 27, 2020
1 parent 0b4a2c9 commit fa538f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mypy/test/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def repr_failure(self, excinfo: Any, style: Optional[Any] = None) -> str:
# call exit() and they already print out a stack trace.
excrepr = excinfo.exconly()
else:
self.parent._prunetraceback(excinfo) # type: ignore[no-untyped-call]
self.parent._prunetraceback(excinfo)
excrepr = excinfo.getrepr(style='short')

return "data: {}:{}:\n{}".format(self.file, self.line, excrepr)
Expand Down
2 changes: 1 addition & 1 deletion mypyc/lib-rt/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
kwargs = {'language': 'c++'}
compile_args = []
else:
kwargs = {}
kwargs = {} # type: ignore
compile_args = ['--std=c++11']

setup(name='test_capi',
Expand Down

0 comments on commit fa538f8

Please sign in to comment.