Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
45d5de15
Commit
45d5de15
authored
Jan 11, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Plain Diff
#16919: merge with 3.3.
parents
edb0e5eb
90bbbd11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
Lib/test/test_crypt.py
Lib/test/test_crypt.py
+6
-5
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_crypt.py
View file @
45d5de15
from
test
import
support
from
test
import
support
import
unittest
import
unittest
crypt
=
support
.
import_module
(
'crypt'
)
def
setUpModule
():
# this import will raise unittest.SkipTest if _crypt doesn't exist,
# so it has to be done in setUpModule for test discovery to work
global
crypt
crypt
=
support
.
import_module
(
'crypt'
)
class
CryptTestCase
(
unittest
.
TestCase
):
class
CryptTestCase
(
unittest
.
TestCase
):
...
@@ -29,8 +33,5 @@ class CryptTestCase(unittest.TestCase):
...
@@ -29,8 +33,5 @@ class CryptTestCase(unittest.TestCase):
self
.
assertTrue
(
len
(
crypt
.
methods
)
>=
1
)
self
.
assertTrue
(
len
(
crypt
.
methods
)
>=
1
)
self
.
assertEqual
(
crypt
.
METHOD_CRYPT
,
crypt
.
methods
[
-
1
])
self
.
assertEqual
(
crypt
.
METHOD_CRYPT
,
crypt
.
methods
[
-
1
])
def
test_main
():
support
.
run_unittest
(
CryptTestCase
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
test_
main
()
unittest
.
main
()
Misc/NEWS
View file @
45d5de15
...
@@ -620,6 +620,9 @@ Tests
...
@@ -620,6 +620,9 @@ Tests
-
Issue
#
16836
:
Enable
IPv6
support
even
if
IPv6
is
disabled
on
the
build
host
.
-
Issue
#
16836
:
Enable
IPv6
support
even
if
IPv6
is
disabled
on
the
build
host
.
-
Issue
#
16919
:
test_crypt
now
works
with
unittest
test
discovery
.
Patch
by
Zachary
Ware
.
-
Issue
#
16910
:
test_bytes
,
test_unicode
,
and
test_userstring
now
work
with
-
Issue
#
16910
:
test_bytes
,
test_unicode
,
and
test_userstring
now
work
with
unittest
test
discovery
.
Patch
by
Zachary
Ware
.
unittest
test
discovery
.
Patch
by
Zachary
Ware
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment