##// END OF EJS Templates
Fix %bookmark -l for Python 3...
Thomas Kluyver -
Show More
@@ -663,8 +663,7 b' class OSMagics(Magics):'
663 663 elif 'r' in opts:
664 664 bkms = {}
665 665 elif 'l' in opts:
666 bks = bkms.keys()
667 bks.sort()
666 bks = sorted(bkms)
668 667 if bks:
669 668 size = max(map(len, bks))
670 669 else:
@@ -942,3 +942,10 b' def test_edit_cell():'
942 942
943 943 # test
944 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