Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r57464:f943f3686e14
Date: 2012-09-21 23:20 +0200
http://bitbucket.org/pypy/pypy/changeset/f943f3686e14/

Log:    cpyext: easy fixes in test_typeobject.py

diff --git a/pypy/module/cpyext/test/test_typeobject.py 
b/pypy/module/cpyext/test/test_typeobject.py
--- a/pypy/module/cpyext/test/test_typeobject.py
+++ b/pypy/module/cpyext/test/test_typeobject.py
@@ -31,7 +31,7 @@
         assert not "im_func" in dir(module.fooType.copy)
         assert module.fooType.copy.__objclass__ is module.fooType
         assert "copy" in repr(module.fooType.copy)
-        assert repr(module.fooType) == "<type 'foo.foo'>"
+        assert repr(module.fooType) == "<class 'foo.foo'>"
         assert repr(obj2) == "<Foo>"
         assert repr(module.fooType.__call__) == "<slot wrapper '__call__' of 
'foo' objects>"
         assert obj2(foo=1, bar=2) == dict(foo=1, bar=2)
@@ -187,8 +187,7 @@
         m = re.search("xyz", "xyzxyz")
         assert m
         assert "groupdict" in dir(m)
-        re._cache.clear()
-        re._cache_repl.clear()
+        re.purge()
         del prog, m
 
     def test_init_error(self):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to