avoid deprecation warnings for our internal accesses

This commit is contained in:
holger krekel
2011-03-05 14:16:27 +01:00
parent 22fac92ca0
commit 07cee24122
4 changed files with 17 additions and 12 deletions

View File

@@ -15,15 +15,10 @@ class TestCollector:
""")
recwarn.clear()
assert modcol.Module == pytest.Module
recwarn.pop(DeprecationWarning)
assert modcol.Class == pytest.Class
recwarn.pop(DeprecationWarning)
assert modcol.Item == pytest.Item
recwarn.pop(DeprecationWarning)
assert modcol.File == pytest.File
recwarn.pop(DeprecationWarning)
assert modcol.Function == pytest.Function
recwarn.pop(DeprecationWarning)
def test_check_equality(self, testdir):
modcol = testdir.getmodulecol("""