mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fixed algorithm test_insert passes now and everything seems to be working fine
This commit is contained in:
parent
549c07bade
commit
c614ba995d
@ -67,8 +67,8 @@ def merge_doctrees(old, new, condition):
|
||||
continue
|
||||
if not merge_node(old_node, new_node):
|
||||
if old_nodes:
|
||||
for i, old_node in enumerate(old_nodes):
|
||||
if merge_node(old_node, new_node):
|
||||
for i, very_old_node in enumerate(old_nodes):
|
||||
if merge_node(very_old_node, new_node):
|
||||
del old_nodes[i]
|
||||
# If the last identified node which has not matched the
|
||||
# unidentified node matches the current one, we have to
|
||||
|
@ -78,8 +78,6 @@ def test_deleted_end():
|
||||
assert original_uids[:-1] == uids
|
||||
|
||||
def test_insert():
|
||||
from nose import SkipTest
|
||||
raise SkipTest('The algorithm does not work at the moment')
|
||||
insert = doctrees['versioning/insert']
|
||||
new_nodes = list(merge_doctrees(original, insert, is_paragraph))
|
||||
uids = [n.uid for n in insert.traverse(is_paragraph)]
|
||||
|
Loading…
Reference in New Issue
Block a user