[Jython-checkins] jython: Reapply Jython exclusion to test.
frank.wierzbicki
jython-checkins at python.org
Fri May 20 05:12:18 CEST 2011
http://hg.python.org/jython/rev/fef14f50cdff
changeset: 6230:fef14f50cdff
user: Frank Wierzbicki <fwierzbicki at gmail.com>
date: Thu May 19 20:11:54 2011 -0700
summary:
Reapply Jython exclusion to test.
files:
Lib/test/test_new.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_new.py b/Lib/test/test_new.py
--- a/Lib/test/test_new.py
+++ b/Lib/test/test_new.py
@@ -101,8 +101,7 @@
test_closure(g, (1, 1), ValueError) # closure is wrong size
test_closure(f, g.func_closure, ValueError) # no closure needed
- # Note: Jython will never have new.code()
- if hasattr(new, 'code'):
+ if hasattr(new, 'code') and not test_support.is_jython:
def test_code(self):
# bogus test of new.code()
def f(a): pass
--
Repository URL: http://hg.python.org/jython
More information about the Jython-checkins
mailing list