We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e93c88b commit 5cd5a93Copy full SHA for 5cd5a93
test/test_hyperdbvals.py
@@ -97,8 +97,12 @@ def testPassword(self):
97
self.assertTrue(isinstance(val, password.Password))
98
val = self._test('password', '{plaintext}a string')
99
100
- val = self._test('password', '{crypt}a string')
101
- self.assertTrue(isinstance(val, password.Password))
+ try:
+ import crypt
102
+ val = self._test('password', '{crypt}a string')
103
+ self.assertTrue(isinstance(val, password.Password))
104
+ except ImportError:
105
+ pass
106
s = sha1(b'a string').hexdigest()
107
val = self._test('password', '{SHA}'+s)
108
0 commit comments