From ffddf45f6296b6d8b58cd29ed68500ac0d6403d0 2013-06-27 18:14:09 From: MinRK Date: 2013-06-27 18:14:09 Subject: [PATCH] Python 2.6 doesn't have assert_is --- diff --git a/IPython/utils/tests/test_importstring.py b/IPython/utils/tests/test_importstring.py index bc0f579..0c79cb3 100644 --- a/IPython/utils/tests/test_importstring.py +++ b/IPython/utils/tests/test_importstring.py @@ -23,14 +23,14 @@ def test_import_plain(): "Test simple imports" import os os2 = import_item('os') - nt.assert_is(os, os2) + nt.assert_true(os is os2) def test_import_nested(): "Test nested imports from the stdlib" from os import path path2 = import_item('os.path') - nt.assert_is(path, path2) + nt.assert_true(path is path2) def test_import_raises():