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
7744e2ae
Commit
7744e2ae
authored
Nov 22, 2010
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test_multiprocessing when ctypes isn't available
parent
0662bc29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
Lib/test/test_multiprocessing.py
Lib/test/test_multiprocessing.py
+8
-4
No files found.
Lib/test/test_multiprocessing.py
View file @
7744e2ae
...
...
@@ -815,8 +815,6 @@ class _TestEvent(BaseTestCase):
#
#
@
unittest
.
skipUnless
(
HAS_SHAREDCTYPES
,
"requires multiprocessing.sharedctypes"
)
class
_TestValue
(
BaseTestCase
):
ALLOWED_TYPES
=
(
'processes'
,)
...
...
@@ -828,6 +826,10 @@ class _TestValue(BaseTestCase):
(
'c'
,
latin
(
'x'
),
latin
(
'y'
))
]
def
setUp
(
self
):
if
not
HAS_SHAREDCTYPES
:
self
.
skipTest
(
"requires multiprocessing.sharedctypes"
)
@
classmethod
def
_test
(
cls
,
values
):
for
sv
,
cv
in
zip
(
values
,
cls
.
codes_values
):
...
...
@@ -1662,12 +1664,14 @@ class _Foo(Structure):
(
'y'
,
c_double
)
]
@
unittest
.
skipUnless
(
HAS_SHAREDCTYPES
,
"requires multiprocessing.sharedctypes"
)
class
_TestSharedCTypes
(
BaseTestCase
):
ALLOWED_TYPES
=
(
'processes'
,)
def
setUp
(
self
):
if
not
HAS_SHAREDCTYPES
:
self
.
skipTest
(
"requires multiprocessing.sharedctypes"
)
@
classmethod
def
_double
(
cls
,
x
,
y
,
foo
,
arr
,
string
):
x
.
value
*=
2
...
...
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