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
a84a7cb0
Commit
a84a7cb0
authored
Jul 16, 2013
by
Richard Oudkerk
Browse files
Options
Browse Files
Download
Plain Diff
Issue #17778: Fix test discovery for test_multiprocessing. (Patch by
Zachary Ware.)
parents
e6f2175a
d15642e4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
31 deletions
+10
-31
Lib/test/test_multiprocessing.py
Lib/test/test_multiprocessing.py
+3
-28
Misc/NEWS
Misc/NEWS
+7
-3
No files found.
Lib/test/test_multiprocessing.py
View file @
a84a7cb0
...
...
@@ -2404,7 +2404,7 @@ class _TestListenerClient(BaseTestCase):
c
.
close
()
l
.
close
()
class
_TestPoll
(
unittest
.
TestCase
):
class
_TestPoll
(
Base
TestCase
):
ALLOWED_TYPES
=
(
'processes'
,
'threads'
)
...
...
@@ -3585,16 +3585,7 @@ class TestIgnoreEINTR(unittest.TestCase):
#
#
testcases_other
=
[
OtherTest
,
TestInvalidHandle
,
TestInitializers
,
TestStdinBadfiledescriptor
,
TestWait
,
TestInvalidFamily
,
TestFlags
,
TestTimeouts
,
TestNoForkBomb
,
TestForkAwareThreadLock
,
TestIgnoreEINTR
]
#
#
#
def
test_main
(
run
=
None
):
def
setUpModule
():
if
sys
.
platform
.
startswith
(
"linux"
):
try
:
lock
=
multiprocessing
.
RLock
()
...
...
@@ -3603,26 +3594,10 @@ def test_main(run=None):
check_enough_semaphores
()
if
run
is
None
:
from
test.support
import
run_unittest
as
run
util
.
get_temp_dir
()
# creates temp directory for use by all processes
multiprocessing
.
get_logger
().
setLevel
(
LOG_LEVEL
)
testcases
=
(
sorted
(
testcases_processes
.
values
(),
key
=
lambda
tc
:
tc
.
__name__
)
+
sorted
(
testcases_threads
.
values
(),
key
=
lambda
tc
:
tc
.
__name__
)
+
sorted
(
testcases_manager
.
values
(),
key
=
lambda
tc
:
tc
.
__name__
)
+
testcases_other
)
loadTestsFromTestCase
=
unittest
.
defaultTestLoader
.
loadTestsFromTestCase
suite
=
unittest
.
TestSuite
(
loadTestsFromTestCase
(
tc
)
for
tc
in
testcases
)
run
(
suite
)
def
main
():
test_main
(
unittest
.
TextTestRunner
(
verbosity
=
2
).
run
)
if
__name__
==
'__main__'
:
main
()
unittest
.
main
()
Misc/NEWS
View file @
a84a7cb0
...
...
@@ -156,9 +156,13 @@ Core and Builtins
Library
-------
-
Issue
#
18393
:
The
private
module
_gestalt
and
private
functions
platform
.
_mac_ver_gestalt
,
platform
.
_mac_ver_lookup
and
platform
.
_bcd2str
have
been
removed
.
This
does
not
affect
the
public
interface
of
the
platform
module
.
-
Issue
#
17778
:
Fix
test
discovery
for
test_multiprocessing
.
(
Patch
by
Zachary
Ware
.)
-
Issue
#
18393
:
The
private
module
_gestalt
and
private
functions
platform
.
_mac_ver_gestalt
,
platform
.
_mac_ver_lookup
and
platform
.
_bcd2str
have
been
removed
.
This
does
not
affect
the
public
interface
of
the
platform
module
.
-
Issue
#
17482
:
functools
.
update_wrapper
(
and
functools
.
wraps
)
now
set
the
__wrapped__
attribute
correctly
even
if
the
underlying
function
has
a
...
...
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