Skip to content

Commit da779b5

Browse files
committed
windows: Fix another failing test due to missing 'crypt'
1 parent 58d9369 commit da779b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_cgi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,8 @@ def testPasswordMigration(self):
437437
# assume that the "best" algorithm is the first one and doesn't
438438
# need migration, all others should be migrated.
439439
for scheme in password.Password.deprecated_schemes:
440+
if scheme == 'crypt' and os.name == 'nt':
441+
continue # crypt is not available on Windows
440442
pw1 = password.Password('foo', scheme=scheme)
441443
self.assertEqual(pw1.needs_migration(), True)
442444
self.db.user.set(chef, password=pw1)

0 commit comments

Comments
 (0)