Permalink
Browse files

Fix rare bug in threading test.

  • Loading branch information...
bsteffensmeier committed Sep 22, 2017
1 parent f46971a commit 7fc93a6319de8503d8a50e75afdeb30ad19e6fac
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/jep/test/TestSharedModulesThreads.java
@@ -56,6 +56,12 @@ public static void main(String[] args) throws Throwable{
jep.eval("t.daemon = True");
jep.eval("t.start()");
jep.eval("t.join()");
/*
* Sleep to workaround a python bug, that occasionally fails the
* test. Remove the sleep when 2.7 and 3.3 are no longer supported.
* https://bugs.python.org/issue18808
*/
Thread.sleep(10);
Object success = jep.getValue("success");
if(!Boolean.TRUE.equals(success)){
System.exit(1);

0 comments on commit 7fc93a6

Please sign in to comment.