[pypy-svn] r73591 - in pypy/branch/cpython-extension/pypy/module/cpyext: . test

jandem at codespeak.net jandem at codespeak.net
Fri Apr 9 19:04:54 CEST 2010


Author: jandem
Date: Fri Apr  9 19:04:51 2010
New Revision: 73591

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/test/test_methodobject.py
   pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py
Log:
Set extension_name to full_name and fix a typo in test


Modified: pypy/branch/cpython-extension/pypy/module/cpyext/test/test_methodobject.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/test/test_methodobject.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/test/test_methodobject.py	Fri Apr  9 19:04:51 2010
@@ -1,7 +1,7 @@
 from pypy.module.cpyext.test.test_api import BaseApiTest
 from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
 
-class AppTestGetargs(AppTestCpythonExtensionBase):
+class AppTestMethodObject(AppTestCpythonExtensionBase):
     def test_METH_O(self):
         mod = self.import_extension('foo', [
             ('getarg', 'METH_O',

Modified: pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py	Fri Apr  9 19:04:51 2010
@@ -212,7 +212,7 @@
             module_name, extension_name = rsplit(full_name, ".", 1)
             dict_w["__module__"] = space.wrap(module_name)
         else:
-            extension_name = None
+            extension_name = full_name
 
         W_TypeObject.__init__(self, space, extension_name,
             bases_w or [space.w_object], dict_w)



More information about the Pypy-commit mailing list