[pypy-svn] rev 629 - in pypy/trunk/src/pypy: interpreter/test objspace/std/test

mwh at codespeak.net mwh at codespeak.net
Wed May 28 17:32:15 CEST 2003


Author: mwh
Date: Wed May 28 17:32:15 2003
New Revision: 629

Added:
   pypy/trunk/src/pypy/interpreter/test/test_objspace.py
      - copied unchanged from rev 628, pypy/trunk/src/pypy/objspace/std/test/test_objspace.py
Removed:
   pypy/trunk/src/pypy/objspace/std/test/test_objspace.py
Log:
move test_objspace into test/interpreter


Deleted: pypy/trunk/src/pypy/objspace/std/test/test_objspace.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/std/test/test_objspace.py	Wed May 28 17:32:15 2003
+++ (empty file)
@@ -1,29 +0,0 @@
-import testsupport
-
-class TestStdObjectSpace(testsupport.TestCase):
-
-    def setUp(self):
-        self.space = testsupport.objspace()
-
-    def tearDown(self):
-        pass
-
-    def test_newstring(self):
-        w = self.space.wrap
-        s = 'abc'
-        chars_w = [w(ord(c)) for c in s]
-        self.assertEqual_w(w(s), self.space.newstring(chars_w))
-
-    def test_newstring_fail(self):
-        w = self.space.wrap
-        s = 'abc'
-        not_chars_w = [w(c) for c in s]
-        self.assertRaises_w(self.space.w_TypeError,
-                            self.space.newstring,
-                            not_chars_w)
-        self.assertRaises_w(self.space.w_ValueError,
-                            self.space.newstring,
-                            [w(-1)])
-
-if __name__ == '__main__':
-    testsupport.main()


More information about the Pypy-commit mailing list