Show More
@@ -306,12 +306,13 Currently the magic system has the following functions:""", | |||
|
306 | 306 | @line_magic |
|
307 | 307 | def profile(self, parameter_s=''): |
|
308 | 308 | """Print your currently active IPython profile. |
|
309 | ||
|
309 | ||
|
310 | 310 | See Also |
|
311 | 311 | -------- |
|
312 | 312 | prun : run code using the Python profiler |
|
313 | 313 | (:meth:`~IPython.core.magics.execution.ExecutionMagics.prun`) |
|
314 | 314 | """ |
|
315 | warn("%profile is now deprecated. Please use get_ipython().profile instead.") | |
|
315 | 316 | from IPython.core.application import BaseIPythonApplication |
|
316 | 317 | if BaseIPythonApplication.initialized(): |
|
317 | 318 | print(BaseIPythonApplication.instance().profile) |
@@ -113,8 +113,8 class ProfileStartupTest(TestCase): | |||
|
113 | 113 | |
|
114 | 114 | @dec.skipif(win32_without_pywin32(), "Test requires pywin32 on Windows") |
|
115 | 115 | def test_startup_ipy(self): |
|
116 |
self.init('00-start.ipy', '% |
|
|
117 |
self.validate(' |
|
|
116 | self.init('00-start.ipy', '%xmode plain\n', '') | |
|
117 | self.validate('Exception reporting mode: Plain') | |
|
118 | 118 | |
|
119 | 119 | |
|
120 | 120 | def test_list_profiles_in(): |
General Comments 0
You need to be logged in to leave comments.
Login now