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
c6bfce98
Commit
c6bfce98
authored
Mar 17, 2012
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#14333: fix test_queue so it can be run via standard unittest test discovery.
parent
5ab88177
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Lib/test/test_queue.py
Lib/test/test_queue.py
+4
-4
No files found.
Lib/test/test_queue.py
View file @
c6bfce98
...
...
@@ -82,7 +82,7 @@ class BlockingTestMixin:
self
.
fail
(
"trigger thread ended but event never set"
)
class
BaseQueueTest
(
unittest
.
TestCase
,
BlockingTestMixin
):
class
BaseQueueTest
Mixin
(
BlockingTestMixin
):
def
setUp
(
self
):
self
.
cum
=
0
self
.
cumlock
=
threading
.
Lock
()
...
...
@@ -229,13 +229,13 @@ class BaseQueueTest(unittest.TestCase, BlockingTestMixin):
with
self
.
assertRaises
(
queue
.
Full
):
q
.
put_nowait
(
4
)
class
QueueTest
(
BaseQueueTest
):
class
QueueTest
(
BaseQueueTest
Mixin
,
unittest
.
TestCase
):
type2test
=
queue
.
Queue
class
LifoQueueTest
(
BaseQueueTest
):
class
LifoQueueTest
(
BaseQueueTest
Mixin
,
unittest
.
TestCase
):
type2test
=
queue
.
LifoQueue
class
PriorityQueueTest
(
BaseQueueTest
):
class
PriorityQueueTest
(
BaseQueueTest
Mixin
,
unittest
.
TestCase
):
type2test
=
queue
.
PriorityQueue
...
...
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