make py lib a self-contained directory again

- move and merge _py/ bits back to py/
- fixes all around

--HG--
branch : trunk
This commit is contained in:
holger krekel
2009-11-04 21:34:07 +01:00
parent 4dd6c7679d
commit b04a04cabd
160 changed files with 294 additions and 281 deletions

View File

@@ -1,7 +1,7 @@
from __future__ import generators
import py
import sys
from _py.code.code import safe_repr
from py.impl.code.code import safe_repr
failsonjython = py.test.mark.xfail("sys.platform.startswith('java')")
@@ -163,7 +163,7 @@ class TestSafeRepr:
assert 'TypeError' in safe_repr(BrokenRepr("string"))
def test_big_repr(self):
from _py.code.code import SafeRepr
from py.impl.code.code import SafeRepr
assert len(safe_repr(range(1000))) <= \
len('[' + SafeRepr().maxlist * "1000" + ']')