[py-svn] r37788 - py/trunk/py/apigen

hpk at codespeak.net hpk at codespeak.net
Fri Feb 2 02:18:10 CET 2007


Author: hpk
Date: Fri Feb  2 02:18:06 2007
New Revision: 37788

Modified:
   py/trunk/py/apigen/apigen.py
Log:
guido, unless i am missing something there seem to be two
problems with your making Channel's public: you didn't import
it (py.__.* is not lazy) and it fails the apigen tests even
after fixing it. 



Modified: py/trunk/py/apigen/apigen.py
==============================================================================
--- py/trunk/py/apigen/apigen.py	(original)
+++ py/trunk/py/apigen/apigen.py	Fri Feb  2 02:18:06 2007
@@ -16,7 +16,8 @@
     sys.path.insert(0, str(pkgdir.dirpath()))
     rootmod = __import__(pkgdir.basename)
     d = pkg_to_dict(rootmod)
-    d['execnet.Channel'] = py.__.execnet.channel.Channel
+    from py.__.execnet.channel import Channel
+    #d['execnet.Channel'] = Channel  # XXX doesn't work 
     return 'py', d
 
 def build(pkgdir, dsa, capture):



More information about the pytest-commit mailing list