Skip to content

Commit

Permalink
Skip test_HMMCasino.py under Jython (see mailing list)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc committed Jan 27, 2011
1 parent dbf0e3f commit 8a16e24
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Tests/test_HMMCasino.py
Expand Up @@ -11,6 +11,15 @@
loaded dice is .05 and the probability of switching from loaded to fair is
.1.
"""

import os
if os.name == 'java':
from Bio import MissingExternalDependencyError
#This is a slight miss-use of MissingExternalDependencyError,
#but it will do in the short term to skip this unit test on Jython
raise MissingExternalDependencyError("This test can cause a fatal error "
"on Jython with some versions of Java")

# standard modules
import random

Expand Down

0 comments on commit 8a16e24

Please sign in to comment.