Skip to content

Commit

Permalink
Jython doesn't work with Attest assert hook #9
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Jun 11, 2012
1 parent 98824f8 commit 6c36156
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions wandtests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import sys

from attest import Tests
from attest.hook import AssertImportHook

# Attest assert hook doesn't work with Jython
if hasattr(sys, 'JYTHON_JAR'):
AssertImportHook.disable()

from . import color, image, resource

Expand Down
2 changes: 1 addition & 1 deletion wandtests/color.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from attest import Tests, assert_hook, raises
from attest import Tests

from wand.color import Color

Expand Down
2 changes: 1 addition & 1 deletion wandtests/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
except ImportError:
import StringIO

from attest import Tests, assert_hook, raises
from attest import Tests, raises

from wand.image import ClosedImageError, Image
from wand.color import Color
Expand Down
2 changes: 1 addition & 1 deletion wandtests/resource.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from attest import Tests, assert_hook, raises
from attest import Tests, raises

from wand import resource

Expand Down

0 comments on commit 6c36156

Please sign in to comment.