diff --git a/IPython/core/tests/test_compilerop.py b/IPython/core/tests/test_compilerop.py index ac9cb9e..89c0672 100644 --- a/IPython/core/tests/test_compilerop.py +++ b/IPython/core/tests/test_compilerop.py @@ -51,7 +51,7 @@ def test_cache(): def setUp(): # Check we're in a proper Python 2 environment (some imports, such # as GTK, can change the default encoding, which can hide bugs.) - nt.assert_equal(sys.getdefaultencoding(), "utf-8" if py3compat.PY3 else "ascii") + nt.assert_equal(sys.getdefaultencoding(), "utf-8") def test_cache_unicode(): cp = compilerop.CachingCompiler() diff --git a/IPython/core/tests/test_oinspect.py b/IPython/core/tests/test_oinspect.py index 04b59ac..2593e33 100644 --- a/IPython/core/tests/test_oinspect.py +++ b/IPython/core/tests/test_oinspect.py @@ -227,8 +227,7 @@ def test_info(): nt.assert_equal(i['docstring'], Call.__doc__) nt.assert_equal(i['source'], None) nt.assert_true(i['isclass']) - _self_py2 = '' if py3compat.PY3 else 'self, ' - nt.assert_equal(i['init_definition'], "Call(%sx, y=1)" % _self_py2) + nt.assert_equal(i['init_definition'], "Call(x, y=1)") nt.assert_equal(i['init_docstring'], Call.__init__.__doc__) i = inspector.info(Call, detail_level=1)