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
213bcb8d
Commit
213bcb8d
authored
Aug 03, 2010
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix buildbot failure in test_os.py
parent
1ce3a686
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Lib/test/test_dl.py
Lib/test/test_dl.py
+3
-0
Lib/test/test_os.py
Lib/test/test_os.py
+1
-2
No files found.
Lib/test/test_dl.py
View file @
213bcb8d
...
...
@@ -3,7 +3,10 @@
Roger E. Masse revised strategy by Barry Warsaw
"""
from
test.test_support
import
verbose
,
TestSkipped
,
import_module
import
warnings
warnings
.
simplefilter
(
'always'
)
dl
=
import_module
(
'dl'
,
deprecated
=
True
)
warnings
.
resetwarnings
()
sharedlibs
=
[
(
'/usr/lib/libc.so'
,
'getpid'
),
...
...
Lib/test/test_os.py
View file @
213bcb8d
...
...
@@ -500,8 +500,7 @@ class DevNullTests (unittest.TestCase):
class
URandomTests
(
unittest
.
TestCase
):
def
test_urandom
(
self
):
try
:
with
test_support
.
_check_py3k_warnings
(
(
'integer argument expected, got float'
,
DeprecationWarning
)):
with
test_support
.
check_warnings
():
self
.
assertEqual
(
len
(
os
.
urandom
(
1
)),
1
)
self
.
assertEqual
(
len
(
os
.
urandom
(
10
)),
10
)
self
.
assertEqual
(
len
(
os
.
urandom
(
100
)),
100
)
...
...
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