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
14b31fe3
Commit
14b31fe3
authored
Jun 15, 2012
by
Richard Oudkerk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix _TestListener.ALLOWED_TYPES and add sanity check
parent
3e5fb551
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Lib/test/test_multiprocessing.py
Lib/test/test_multiprocessing.py
+3
-1
No files found.
Lib/test/test_multiprocessing.py
View file @
14b31fe3
...
...
@@ -2268,7 +2268,7 @@ class _TestConnection(BaseTestCase):
class
_TestListener
(
BaseTestCase
):
ALLOWED_TYPES
=
(
'processes'
)
ALLOWED_TYPES
=
(
'processes'
,
)
def
test_multiple_bind
(
self
):
for
family
in
self
.
connection
.
families
:
...
...
@@ -2850,10 +2850,12 @@ def create_test_cases(Mixin, type):
result
=
{}
glob
=
globals
()
Type
=
type
.
capitalize
()
ALL_TYPES
=
{
'processes'
,
'threads'
,
'manager'
}
for
name
in
list
(
glob
.
keys
()):
if
name
.
startswith
(
'_Test'
):
base
=
glob
[
name
]
assert
set
(
base
.
ALLOWED_TYPES
)
<=
ALL_TYPES
,
set
(
base
.
ALLOWED_TYPES
)
if
type
in
base
.
ALLOWED_TYPES
:
newname
=
'With'
+
Type
+
name
[
1
:]
class
Temp
(
base
,
unittest
.
TestCase
,
Mixin
):
...
...
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