Show More
@@ -65,7 +65,7 b' def convert(nb, to_version):' | |||||
65 | raise Exception("Cannot convert notebook from v%d to v%d. Operation" \ |
|
65 | raise Exception("Cannot convert notebook from v%d to v%d. Operation" \ | |
66 | "failed silently." % (major, step_version)) |
|
66 | "failed silently." % (major, step_version)) | |
67 |
|
67 | |||
68 |
# Recur |
|
68 | # Recursively convert until target version is reached. | |
69 | return convert(converted, to_version) |
|
69 | return convert(converted, to_version) | |
70 | else: |
|
70 | else: | |
71 | raise Exception("Cannot convert notebook to v%d because that " \ |
|
71 | raise Exception("Cannot convert notebook to v%d because that " \ |
@@ -51,8 +51,8 b' class TestConvert(TestsBase):' | |||||
51 |
|
51 | |||
52 |
|
52 | |||
53 | def test_open_current(self): |
|
53 | def test_open_current(self): | |
54 |
"""Can an old notebook be opened and converted to the current verion |
|
54 | """Can an old notebook be opened and converted to the current version | |
55 | remembering the original version of the notebook?""" |
|
55 | while remembering the original version of the notebook?""" | |
56 |
|
56 | |||
57 | # Open a version 2 notebook and attempt to upgrade it to the current version |
|
57 | # Open a version 2 notebook and attempt to upgrade it to the current version | |
58 | # while remembering it's version information. |
|
58 | # while remembering it's version information. |
General Comments 0
You need to be logged in to leave comments.
Login now