Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 807f6092740a5b0e762fa70c2a39677762d54b0b 1 parent 45df6ff
@bfroehle authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 IPython/lib/tests/test_deepreload.py
View
4 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))
Please sign in to comment.
Something went wrong with that request. Please try again.