parent
253c173a88
commit
6b0db18eca
|
@ -157,7 +157,8 @@ class TracebackEntry(object):
|
||||||
return self.exprinfo
|
return self.exprinfo
|
||||||
|
|
||||||
def getfirstlinesource(self):
|
def getfirstlinesource(self):
|
||||||
return self.frame.code.firstlineno
|
# on Jython this firstlineno can be -1 apparently
|
||||||
|
return max(self.frame.code.firstlineno, 0)
|
||||||
|
|
||||||
def getsource(self):
|
def getsource(self):
|
||||||
""" return failing source code. """
|
""" return failing source code. """
|
||||||
|
|
|
@ -610,7 +610,7 @@ def pytest_report_header(config):
|
||||||
"*hello: info*",
|
"*hello: info*",
|
||||||
])
|
])
|
||||||
|
|
||||||
needsosdup = py.test.mark.xfail("not hasattr(os, 'dup')")
|
@py.test.mark.xfail("not hasattr(os, 'dup')")
|
||||||
def test_fdopen_kept_alive_issue124(testdir):
|
def test_fdopen_kept_alive_issue124(testdir):
|
||||||
testdir.makepyfile("""
|
testdir.makepyfile("""
|
||||||
import os, sys
|
import os, sys
|
||||||
|
|
Loading…
Reference in New Issue