Skip to content

Commit fa48a25

Browse files
martinhoyerphilpep
authored andcommitted
Remove crypt lib from testing
1 parent 40e3df1 commit fa48a25

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
@@ -257,7 +256,8 @@ def test_nonexistent_user(host):
257256
def test_current_user(host):
258257
assert host.user().name == "root"
259258
pw = host.user().password
260-
assert crypt.crypt("foo", pw) == pw
259+
assert pw.startswith("$")
260+
assert len(pw) == 73
261261

262262

263263
def test_group(host):

0 commit comments

Comments
 (0)