[Jython-checkins] jython: Tests in org/python/tests/imp run only with proper path. Fixes #2327.
jeff.allen
jython-checkins at python.org
Mon Apr 20 00:50:15 CEST 2015
https://hg.python.org/jython/rev/a6f113302fae
changeset: 7681:a6f113302fae
parent: 7661:415c4a58078e
user: Jeff Allen <ja.py at farowl.co.uk>
date: Sat Apr 18 11:46:19 2015 +0100
summary:
Tests in org/python/tests/imp run only with proper path. Fixes #2327.
The JUnit test for package import depends on a particular class path
setting. It has its own ant target for this reason, but was also found
by the general search for tests, where it ran and failed.
files:
build.xml | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/build.xml b/build.xml
--- a/build.xml
+++ b/build.xml
@@ -929,7 +929,10 @@
<!-- Clean any old test output -->
<delete dir="${junit.reports}"/>
</target>
- <target name="javatest" depends="developer-build" description="run all the JUnit tests">
+ <target name="javatest" depends="javatest-basepath,importest"
+ description="run all the JUnit tests">
+ </target>
+ <target name="javatest-basepath" depends="developer-build">
<mkdir dir="${junit.reports}"/>
<junit fork="true" printsummary="true">
<formatter type="xml"/>
@@ -942,6 +945,7 @@
<exclude name="**/InterpTestCase.java" />
<exclude name="**/jythonTest*" /> <!-- Must run interactively -->
<exclude name="org/python/antlr/**" />
+ <exclude name="org/python/tests/imp/**" /> <!-- See importest -->
<exclude name=".classpath" />
<exclude name=".project" />
</fileset>
--
Repository URL: https://hg.python.org/jython
More information about the Jython-checkins
mailing list