Permalink
Browse files

Fix deepreload tests in Python 2.6.

Apparently assert_is_instance and assert_not_is_instance are not available
in Python 2.6.
  • Loading branch information...
1 parent 45df6ff commit 807f6092740a5b0e762fa70c2a39677762d54b0b @bfroehle committed Apr 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 IPython/lib/tests/test_deepreload.py
@@ -44,9 +44,9 @@ def test_deepreload():
# Test that A is not reloaded.
obj = A.Object()
dreload(B, exclude=['A'])
- nt.assert_is_instance(obj, A.Object)
+ nt.assert_true(isinstance(obj, A.Object))
# Test that A is reloaded.
obj = A.Object()
dreload(B)
- nt.assert_not_is_instance(obj, A.Object)
+ nt.assert_false(isinstance(obj, A.Object))

0 comments on commit 807f609

Please sign in to comment.