first round of fixing jython compatibility issues, marking some tests as xfail-on-jython

--HG--
branch : trunk
This commit is contained in:
holger krekel
2009-10-27 21:34:11 +01:00
parent 33bd39053f
commit d2e6cd0523
11 changed files with 46 additions and 8 deletions

View File

@@ -28,6 +28,9 @@ class Code(object):
if rec-cursive is true then dive into code
objects contained in co_consts.
"""
if sys.platform.startswith("java"):
# XXX jython does not support the below co_filename hack
return self.raw
names = [x for x in dir(self.raw) if x[:3] == 'co_']
for name in kwargs:
if name not in names: