From 016adad9c3ae33986a7de7745cbefb6742178843 2011-11-01 20:15:38 From: Thomas Kluyver Date: 2011-11-01 20:15:38 Subject: [PATCH] Fix startup directory test for Python 3. --- diff --git a/IPython/core/tests/test_profile.py b/IPython/core/tests/test_profile.py index edba003..781c4c9 100644 --- a/IPython/core/tests/test_profile.py +++ b/IPython/core/tests/test_profile.py @@ -80,7 +80,7 @@ def test_startup_py(): # write simple test file, to check that the startup file was run fname = os.path.join(TMP_TEST_DIR, 'test.py') with open(fname, 'w') as f: - f.write('print zzz\n') + f.write(py3compat.doctest_refactor_print('print zzz\n')) # validate output tt.ipexec_validate(fname, '123', '', options=['--ipython-dir', IP_TEST_DIR, '--profile', 'test']) @@ -100,4 +100,4 @@ def test_startup_ipy(): tt.ipexec_validate(fname, 'test', '', options=['--ipython-dir', IP_TEST_DIR, '--profile', 'test']) - \ No newline at end of file +