deprecate py.magic.autopath() and finally remove py/magic directory.

--HG--
branch : trunk
This commit is contained in:
holger krekel
2009-08-27 18:46:42 +02:00
parent 13932b7f4b
commit 681d344eac
18 changed files with 150 additions and 131 deletions

View File

@@ -161,13 +161,3 @@ class TestView:
assert codelines == ["4 + 5", "getitem('', 'join')",
"setattr('x', 'y', 3)", "12 - 1"]
def test_AssertionError(testdir):
testdir.makepyfile("""
import py
def test_hello(recwarn):
err = py.magic.AssertionError
recwarn.pop(DeprecationWarning)
assert err is py.code._AssertionError
""")
result = testdir.runpytest()
assert "1 passed" in result.stdout.str()