Skip to content

Commit 258929d

Browse files
committed
Remove crypt lib from testing
1 parent 54f3b5c commit 258929d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_modules.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
# See the License for the specific language governing permissions and
1111
# limitations under the License.
1212

13-
import crypt
1413
import datetime
1514
import os
1615
import re
@@ -246,7 +245,8 @@ def test_nonexistent_user(host):
246245
def test_current_user(host):
247246
assert host.user().name == "root"
248247
pw = host.user().password
249-
assert crypt.crypt("foo", pw) == pw
248+
assert pw.startswith("$")
249+
assert len(pw) == 75
250250

251251

252252
def test_group(host):

0 commit comments

Comments
 (0)