verify exceeded min_verify_time - only on osx

Issue #17 resolved
Anonymous created an issue
(Imported from Google Code)

vikasuy wrote:

What steps will reproduce the problem?
1. from passlib.apps import custom_app_context as pwd_context
2. hash = pwd_context.encrypt("somepass")
3. ok = pwd_context.verify("somepass", hash)

What is the expected output? What do you see instead?
Expect ok to be true. Instead, I get the following exception
Traceback (most recent call last):

File " ", line 1, in

File "passlib/", line 1085, in verify

warn("CryptContext: verify exceeded min_verify_time: scheme=%r min_verify_time=%r elapsed=%r",, mvt, end-start)
TypeError: warn() takes at most 3 arguments (4 given)

I am using passlib 1.5 on Max OSX 10.6 (snow leopard). If I open a linux vm on the same machine and run the same steps, the exception isn't thrown and everything works fine.

Comments (4)

  1. Eli Collins repo owner
    • assigned issue to True
    • changed status to resolved
    (Imported from Google Code)

    Thanks for reporting this, looks like two bugs in one.

    I've committed fixes to the mercurial repo, but probably won't have time to push a new release for a little while. If this is a showstopper for you, you can use the following snippet in place of importing custom_app_context...

    from passlib.context import CryptContext
    pwd_context = CryptContext(

    schemes=["sha512_crypt", "sha256_crypt"],

    allvary_rounds = "10%",

    sha512_cryptdefault_rounds = 40000,

    sha256_cryptdefault_rounds = 40000,

    adminsha512_cryptdefault_rounds = 80000,

    adminsha256_cryptdefault_rounds = 80000,


  2. Log in to comment