Remove and ban use of py.builtin

This commit is contained in:
Anthony Sottile
2019-01-20 11:59:48 -08:00
parent 57bf9d6740
commit ec5e279f93
5 changed files with 15 additions and 10 deletions

View File

@@ -963,7 +963,7 @@ class TestTracebackCutting(object):
def test_filter_traceback_generated_code(self):
"""test that filter_traceback() works with the fact that
py.code.Code.path attribute might return an str object.
_pytest._code.code.Code.path attribute might return an str object.
In this case, one of the entries on the traceback was produced by
dynamically generated code.
See: https://bitbucket.org/pytest-dev/py/issues/71
@@ -984,7 +984,7 @@ class TestTracebackCutting(object):
def test_filter_traceback_path_no_longer_valid(self, testdir):
"""test that filter_traceback() works with the fact that
py.code.Code.path attribute might return an str object.
_pytest._code.code.Code.path attribute might return an str object.
In this case, one of the files in the traceback no longer exists.
This fixes #1133.
"""