##// END OF EJS Templates
Fix %bookmark -l for Python 3...
Thomas Kluyver -
Show More
@@ -663,8 +663,7 b' class OSMagics(Magics):'
663 elif 'r' in opts:
663 elif 'r' in opts:
664 bkms = {}
664 bkms = {}
665 elif 'l' in opts:
665 elif 'l' in opts:
666 bks = bkms.keys()
666 bks = sorted(bkms)
667 bks.sort()
668 if bks:
667 if bks:
669 size = max(map(len, bks))
668 size = max(map(len, bks))
670 else:
669 else:
@@ -942,3 +942,10 b' def test_edit_cell():'
942
942
943 # test
943 # test
944 _run_edit_test("1", exp_contents=ip.user_ns['In'][1], exp_is_temp=True)
944 _run_edit_test("1", exp_contents=ip.user_ns['In'][1], exp_is_temp=True)
945
946 def test_bookmark():
947 ip = get_ipython()
948 ip.run_line_magic('bookmark', 'bmname')
949 with tt.AssertPrints('bmname'):
950 ip.run_line_magic('bookmark', '-l')
951 ip.run_line_magic('bookmark', '-d bmname')
General Comments 0
You need to be logged in to leave comments. Login now