"test bitsize()" failed test w/1.6.4

Issue #57 closed
Felix Yan created an issue

The following test is failing here, with Python 3.4.3:

....................................................................................................SSSSSSSSSSS.....S......SSS....S.SSS........S......SSS....S.SSS........S......SSS....S.SS.S........SSSSSSSSSS....S.SS.S................S......SS.S.......SSSSSSSSSS....S.SSSS..........SS.SSS.SSS....S.SS.S.........S......SSS....S.SSSS.......S........S....S.SSSS..............SSS......SS.S..........S........S....S.SSSS.......S........S....S.SS..........S........S....S.SSSS.......SSSSSSSSSS....S.SSSS.......SSSSSSSSSS....S.SSSS.......SSSSSSSSSS....S.SSSS.......SSSSSSSSSS....S.SSSS.......SSSSSSSSSS....S.SSSS.......SSSSSSSSSS....S.SS.S...S.............SSS......SSS......S....SSSSSSSSSS....S.SSSS........SSSSSSSSSS....S.SS.S.......S......SSS....S.SSS........S......SSS....S.SSS........SSSSSSSSSS....S.SSSS.......SSSSSSSSSS....S.SS.S...............SSS......SSS...........SSSSSSSSSS....S.SSSS..........SSSSSSSSSS....S..SSS..........S......SSS....S............S......SSS....S............SSSSSSSSSS....S.SS.S........SSSSSSSSSS....S.SS.S..l.....SSSSSSSSSS....S.SS.S......SSSSSSSSSS....S.SS.S..........S......SSS....S.SSSS.......S........S....S.SSS........S........S....S.SSSS.......S........S....S.SSSS.......S.............S.SSS........SSSSSSSSSS....S.SSSSS......SSSSSSSSSS....S.SS.S..........S........S....S.SSS.........................S......SSS.................S......S.S....................S......S.S...........S........S....S.S.S........SSSSSSSSSS....S.SS.S..S.....SSSSSSSSSS....S.SSSSS.S......S......SSS....S..S.....SS....SSSSSSSSSS....S..SSS..S....S........S....S.SSSS...SS....S........S....S.SSSS...SS....S......SSS....S.SS.....SS....S......SSS....S.SS.....SS..........................................................................................S......SSS....S.SSSS..............F....SSSSSSSSSS....S.SSSS......
======================================================================
FAIL: test bitsize()
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/python-passlib/src/passlib-1.6.4/passlib/tests/test_utils_handlers.py", line 528, in test_92_bitsize
    {'checksum': 258, 'rounds': 14, 'salt': 96})
AssertionError: {'salt': 96, 'checksum': 258, 'rounds': 16} != {'salt': 96, 'checksum': 258, 'rounds': 14}
- {'checksum': 258, 'rounds': 16, 'salt': 96}
?                              ^

+ {'checksum': 258, 'rounds': 14, 'salt': 96}
?                              ^


----------------------------------------------------------------------
Ran 1813 tests in 117.145s

FAILED (SKIP=593, failures=1)

Comments (3)

  1. Eli Collins repo owner

    This is what I get for making even the smallest change between running the UT suite and pushing a release: I updated the default rounds values for all the hashes, and that broke one of the minor tests that had a hardcoded assumption which never cropped up before.

    Luckily, this is a glitch in the tests, not the code; and can be ignored. Let me know if any others happen.

    This fixed in rev a0a15d2 of the stable branch. You can either checkout the stable branch and install from source, or just ignore it. This will get rolled up in the 1.6.5 along with any other bugs that get reported in the next week (hopefully 0).

    (edit: I'd mark this as resolved, but I'd like it to stay in the 'open' list so people can see it easily for now)

  2. Log in to comment