[svn r63580] * removing usage of py.magic.patch

* removing obsolete greenlet.py

--HG--
branch : trunk
This commit is contained in:
hpk
2009-04-03 19:45:25 +02:00
parent 245da9de19
commit cca19f1183
6 changed files with 24 additions and 55 deletions

View File

@@ -667,14 +667,11 @@ class TestCollectonly:
!!! ValueError: 0 !!!
""")
def test_repr_python_version():
py.magic.patch(sys, 'version_info', (2, 5, 1, 'final', 0))
try:
assert repr_pythonversion() == "2.5.1-final-0"
py.std.sys.version_info = x = (2,3)
assert repr_pythonversion() == str(x)
finally:
py.magic.revert(sys, 'version_info')
def test_repr_python_version(monkeypatch):
monkeypatch.setattr(sys, 'version_info', (2, 5, 1, 'final', 0))
assert repr_pythonversion() == "2.5.1-final-0"
py.std.sys.version_info = x = (2,3)
assert repr_pythonversion() == str(x)
def test_generic(plugintester):
plugintester.apicheck(TerminalPlugin)