[pypy-svn] r39681 - in pypy/dist/pypy/objspace/std: . test
hpk at codespeak.net
hpk at codespeak.net
Fri Mar 2 15:12:37 CET 2007
Author: hpk
Date: Fri Mar 2 15:12:33 2007
New Revision: 39681
Removed:
pypy/dist/pypy/objspace/std/autopath.py
pypy/dist/pypy/objspace/std/test/autopath.py
Modified:
pypy/dist/pypy/objspace/std/test/test_boolobject.py
pypy/dist/pypy/objspace/std/test/test_complexobject.py
pypy/dist/pypy/objspace/std/test/test_dictmultiobject.py
pypy/dist/pypy/objspace/std/test/test_dictobject.py
pypy/dist/pypy/objspace/std/test/test_dictproxy.py
pypy/dist/pypy/objspace/std/test/test_dictstrobject.py
pypy/dist/pypy/objspace/std/test/test_floatobject.py
pypy/dist/pypy/objspace/std/test/test_instmethobject.py
pypy/dist/pypy/objspace/std/test/test_intobject.py
pypy/dist/pypy/objspace/std/test/test_iterobject.py
pypy/dist/pypy/objspace/std/test/test_listmultiobject.py
pypy/dist/pypy/objspace/std/test/test_listobject.py
pypy/dist/pypy/objspace/std/test/test_longobject.py
pypy/dist/pypy/objspace/std/test/test_multimethod.py
pypy/dist/pypy/objspace/std/test/test_noneobject.py
pypy/dist/pypy/objspace/std/test/test_rangeobject.py
pypy/dist/pypy/objspace/std/test/test_set.py
pypy/dist/pypy/objspace/std/test/test_sliceobject.py
pypy/dist/pypy/objspace/std/test/test_smallintobject.py
pypy/dist/pypy/objspace/std/test/test_stdobjspace.py
pypy/dist/pypy/objspace/std/test/test_stringformat.py
pypy/dist/pypy/objspace/std/test/test_stringobject.py
pypy/dist/pypy/objspace/std/test/test_strjoinobject.py
pypy/dist/pypy/objspace/std/test/test_strsliceobject.py
pypy/dist/pypy/objspace/std/test/test_strutil.py
pypy/dist/pypy/objspace/std/test/test_tupleobject.py
pypy/dist/pypy/objspace/std/test/test_typeobject.py
pypy/dist/pypy/objspace/std/test/test_unicodeobject.py
pypy/dist/pypy/objspace/std/test/test_userobject.py
Log:
removing autopath from std object space
and fixing an escaping issue in test_complexobject.py
(hopefully)
Modified: pypy/dist/pypy/objspace/std/test/test_boolobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_boolobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_boolobject.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,3 @@
-import autopath
Modified: pypy/dist/pypy/objspace/std/test/test_complexobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_complexobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_complexobject.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,3 @@
-import autopath
import py
from pypy.objspace.std import complexobject as cobj
from pypy.objspace.std import complextype as cobjtype
@@ -60,7 +59,13 @@
class AppTestAppComplexTest:
def setup_class(cls):
- cls.w_helper = cls.space.appexec([], "():\n import sys\n sys.path.append('%s')\n import helper\n return helper" % (str(py.magic.autopath().dirpath()).replace('\\', '\\\\'), ))
+ cls.w_helper = cls.space.appexec([], """
+ ():
+ import sys
+ sys.path.append(%r)
+ import helper
+ return helper
+ """ % (str(py.magic.autopath().dirpath())))
def test_div(self):
h = self.helper
Modified: pypy/dist/pypy/objspace/std/test/test_dictmultiobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_dictmultiobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_dictmultiobject.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,3 @@
-import autopath
from pypy.interpreter.error import OperationError
from pypy.objspace.std.dictmultiobject import \
W_DictMultiObject, setitem__DictMulti_ANY_ANY, getitem__DictMulti_ANY, \
Modified: pypy/dist/pypy/objspace/std/test/test_dictobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_dictobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_dictobject.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,3 @@
-import autopath
from pypy.objspace.std.dictobject import W_DictObject
from pypy.conftest import gettestobjspace
Modified: pypy/dist/pypy/objspace/std/test/test_dictproxy.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_dictproxy.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_dictproxy.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,3 @@
-import autopath
class AppTestUserObject:
Modified: pypy/dist/pypy/objspace/std/test/test_dictstrobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_dictstrobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_dictstrobject.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,3 @@
-import autopath
from pypy.objspace.std.dictstrobject import W_DictStrObject, setitem__DictStr_ANY_ANY, getitem__DictStr_ANY
from pypy.conftest import gettestobjspace
from pypy.objspace.std.test import test_dictobject
Modified: pypy/dist/pypy/objspace/std/test/test_floatobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_floatobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_floatobject.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,3 @@
-import autopath
from pypy.objspace.std import floatobject as fobj
from pypy.objspace.std.objspace import FailedToImplement
import py
Modified: pypy/dist/pypy/objspace/std/test/test_instmethobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_instmethobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_instmethobject.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,3 @@
-import autopath
# NB. instmethobject.py has been removed,
# but the following tests still make sense
Modified: pypy/dist/pypy/objspace/std/test/test_intobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_intobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_intobject.py Fri Mar 2 15:12:33 2007
@@ -1,5 +1,4 @@
import sys
-import autopath
from pypy.objspace.std import intobject as iobj
from pypy.objspace.std.objspace import FailedToImplement
from pypy.rlib.rarithmetic import r_uint
Modified: pypy/dist/pypy/objspace/std/test/test_iterobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_iterobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_iterobject.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,3 @@
-import autopath
from pypy.objspace.std.iterobject import W_SeqIterObject
from pypy.interpreter.error import OperationError
Modified: pypy/dist/pypy/objspace/std/test/test_listmultiobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_listmultiobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_listmultiobject.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,3 @@
-import autopath
from pypy.interpreter.error import OperationError
from pypy.objspace.std.listmultiobject import W_ListMultiObject, \
SliceTrackingListImplementation
Modified: pypy/dist/pypy/objspace/std/test/test_listobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_listobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_listobject.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,4 @@
-import autopath, random
+import random
from pypy.objspace.std.listobject import W_ListObject
from pypy.interpreter.error import OperationError
Modified: pypy/dist/pypy/objspace/std/test/test_longobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_longobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_longobject.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,3 @@
-import autopath
import py
import sys
from pypy.objspace.std import longobject as lobj
Modified: pypy/dist/pypy/objspace/std/test/test_multimethod.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_multimethod.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_multimethod.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,3 @@
-import autopath
from py.test import raises
from pypy.objspace.std import multimethod
Modified: pypy/dist/pypy/objspace/std/test/test_noneobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_noneobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_noneobject.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,3 @@
-import autopath
Modified: pypy/dist/pypy/objspace/std/test/test_rangeobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_rangeobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_rangeobject.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,4 @@
-import autopath, py
+import py
from pypy.conftest import gettestobjspace
Modified: pypy/dist/pypy/objspace/std/test/test_set.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_set.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_set.py Fri Mar 2 15:12:33 2007
@@ -7,7 +7,6 @@
This file just contains some basic tests that make sure, the implementation
is not too wrong.
"""
-import autopath
import py.test
from pypy.objspace.std.setobject import W_SetObject, W_FrozensetObject
from pypy.objspace.std.setobject import _initialize_set
Modified: pypy/dist/pypy/objspace/std/test/test_sliceobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_sliceobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_sliceobject.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,3 @@
-import autopath
class TestW_SliceObject:
Modified: pypy/dist/pypy/objspace/std/test/test_smallintobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_smallintobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_smallintobject.py Fri Mar 2 15:12:33 2007
@@ -1,5 +1,4 @@
import sys, py
-import autopath
#from pypy.objspace.std.model import WITHSMALLINT
#if not WITHSMALLINT:
Modified: pypy/dist/pypy/objspace/std/test/test_stdobjspace.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_stdobjspace.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_stdobjspace.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,3 @@
-import autopath
from pypy.interpreter.error import OperationError
Modified: pypy/dist/pypy/objspace/std/test/test_stringformat.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_stringformat.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_stringformat.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,3 @@
-import autopath
class AppTestStringObjectWithDict:
Modified: pypy/dist/pypy/objspace/std/test/test_stringobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_stringobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_stringobject.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,3 @@
-import autopath
from pypy.objspace.std import stringobject
from pypy.objspace.std.stringobject import W_StringObject
Modified: pypy/dist/pypy/objspace/std/test/test_strjoinobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_strjoinobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_strjoinobject.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,4 @@
-import autopath, py
+import py
from pypy.objspace.std.test import test_stringobject
from pypy.conftest import gettestobjspace
Modified: pypy/dist/pypy/objspace/std/test/test_strsliceobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_strsliceobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_strsliceobject.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,4 @@
-import autopath, py
+import py
from pypy.objspace.std.test import test_stringobject
from pypy.conftest import gettestobjspace
Modified: pypy/dist/pypy/objspace/std/test/test_strutil.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_strutil.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_strutil.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,3 @@
-import autopath
import py, random
from pypy.objspace.std.strutil import *
Modified: pypy/dist/pypy/objspace/std/test/test_tupleobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_tupleobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_tupleobject.py Fri Mar 2 15:12:33 2007
@@ -1,5 +1,4 @@
#from __future__ import nested_scopes
-import autopath
from pypy.objspace.std.tupleobject import W_TupleObject
from pypy.interpreter.error import OperationError
Modified: pypy/dist/pypy/objspace/std/test/test_typeobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_typeobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_typeobject.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,3 @@
-import autopath
from pypy.objspace.std.objspace import *
from pypy.objspace.std.stdtypedef import *
Modified: pypy/dist/pypy/objspace/std/test/test_unicodeobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_unicodeobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_unicodeobject.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,4 @@
-import autopath, sys
+import sys
class AppTestUnicodeStringStdOnly:
Modified: pypy/dist/pypy/objspace/std/test/test_userobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_userobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_userobject.py Fri Mar 2 15:12:33 2007
@@ -1,4 +1,3 @@
-import autopath
class AppTestUserObject:
More information about the Pypy-commit
mailing list