#86 checks fail

closed-fixed
None
5
2010-09-15
2008-12-29
No

This is on Mandriva Cooker with python 2.6.0. The checks fail, it worked with python 2.5:

running build_ext
error: tests/simple-2.bib: line 1: unexpected result:
error: tests/simple-2.bib: line 1: obtained ('entry', ('gobry03', 'article', 0, 1, {'journal': (0, 0, 'My diary'), 'title': (2, 0, 'A simple example'), 'year': (3, 0, '2003', 2003, 0, 0), 'author': (1, 0, 'Fr\xe9d\xe9ric Gobry', [(None, 'Fr\xe9d\xe9ric', 'Gobry', None)])}))
error: tests/simple-2.bib: line 1: expected ('entry', ('gobry03', 'article', 0, 1, {'journal': (0, 0, 'My diary'), 'year': (3, 0, '2003', 2003, 0, 0), 'author': (1, 0, 'Fr\xe9d\xe9ric Gobry', [(None, 'Fr\xe9d\xe9ric', 'Gobry', None)]), 'title': (2, 0, 'A simple example')}))
error: tests/simple.bib: line 1: unexpected result:
error: tests/simple.bib: line 1: obtained ('gobry03', 'article', 0, 1, {'journal': (0, 0, 'My diary'), 'title': (2, 0, 'A simple example'), 'year': (3, 0, '2003', 2003, 0, 0), 'author': (1, 0, 'Fr\xe9d\xe9ric Gobry', [(None, 'Fr\xe9d\xe9ric', 'Gobry', None)])})
error: tests/simple.bib: line 1: expected ('gobry03', 'article', 0, 1, {'journal': (0, 0, 'My diary'), 'year': (3, 0, '2003', 2003, 0, 0), 'author': (1, 0, 'Fr\xe9d\xe9ric Gobry', [(None, 'Fr\xe9d\xe9ric', 'Gobry', None)]), 'title': (2, 0, 'A simple example')})
testsuite: 12 checks, 3 failures
error: check failed.

Discussion

  • Frédéric Gobry

    • assigned_to: nobody --> gobry
     
  • Frédéric Gobry

    Looks like it's because the tests rely on the dictionary to return the keys in the same order, which they are not guaranteed to. 2.6 must have introduced a few tweaks to the implementation. I'll try to write some decent tests instead of the current ones.

     
  • Zoltán Kóta

    Zoltán Kóta - 2010-09-15

    The testsuite is fixed in python-bibtex-1.2.5.

     
  • Zoltán Kóta

    Zoltán Kóta - 2010-09-15
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks