From d5e7d795f1f265461b0f994820888cd3ca8b4272 2012-07-14 21:10:44 From: Dominik Dabrowski Date: 2012-07-14 21:10:44 Subject: [PATCH] account for trailing newline in test_history.test_history --- diff --git a/IPython/core/tests/test_history.py b/IPython/core/tests/test_history.py index bef2d42..6b5c218 100644 --- a/IPython/core/tests/test_history.py +++ b/IPython/core/tests/test_history.py @@ -95,7 +95,7 @@ def test_history(): ip.magic("save " + testfilename + " ~1/1-3") with py3compat.open(testfilename, encoding='utf-8') as testfile: nt.assert_equal(testfile.read(), - u"# coding: utf-8\n" + u"\n".join(hist)) + u"# coding: utf-8\n" + u"\n".join(hist)+u"\n") # Duplicate line numbers - check that it doesn't crash, and # gets a new session