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
2d935019
Commit
2d935019
authored
Aug 19, 2008
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make test_threading more robust for real
parent
ec2576c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
Lib/test/test_threading.py
Lib/test/test_threading.py
+1
-3
No files found.
Lib/test/test_threading.py
View file @
2d935019
...
...
@@ -324,14 +324,12 @@ class ThreadTests(unittest.TestCase):
sys
.
getrefcount
(
weak_raising_cyclic_object
())))
def
test_pep8ified_threading
(
self
):
import
warnings
def
check
(
_
,
w
,
msg
):
self
.
assertEqual
(
str
(
w
.
message
),
msg
)
t
=
threading
.
Thread
()
with
catch_warning
()
as
w
:
warnings
.
simplefilter
(
"always"
,
DeprecationWarning
)
del
threading
.
__warningregistry__
msg
=
"isDaemon() is deprecated in favor of the "
\
"Thread.daemon property"
check
(
t
.
isDaemon
(),
w
,
msg
)
...
...
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