with pypy this tests leaks one FD but it's probably a residual effect of the testing machinery and Pypy's lazy GC.

This commit is contained in:
holger krekel 2014-07-14 09:17:04 +02:00
parent 42804c52e8
commit 8c508612ec
1 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,8 @@ class TestDoctests:
assert isinstance(items[0].parent, DoctestModule) assert isinstance(items[0].parent, DoctestModule)
assert items[0].parent is items[1].parent assert items[0].parent is items[1].parent
@pytest.mark.xfail('hasattr(sys, "pypy_version_info")', reason=
"pypy leaks one FD")
def test_simple_doctestfile(self, testdir): def test_simple_doctestfile(self, testdir):
p = testdir.maketxtfile(test_doc=""" p = testdir.maketxtfile(test_doc="""
>>> x = 1 >>> x = 1