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
72949bd5
Commit
72949bd5
authored
Feb 20, 2012
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
this was supposed to die
parent
50376771
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
16 deletions
+2
-16
Lib/test/test_compiler.py
Lib/test/test_compiler.py
+2
-2
Lib/test/test_os.py
Lib/test/test_os.py
+0
-14
No files found.
Lib/test/test_compiler.py
View file @
72949bd5
...
@@ -28,8 +28,8 @@ class CompilerTest(unittest.TestCase):
...
@@ -28,8 +28,8 @@ class CompilerTest(unittest.TestCase):
libdir
=
os
.
path
.
dirname
(
os
.
__file__
)
libdir
=
os
.
path
.
dirname
(
os
.
__file__
)
testdir
=
os
.
path
.
dirname
(
test
.
test_support
.
__file__
)
testdir
=
os
.
path
.
dirname
(
test
.
test_support
.
__file__
)
for
dir
in
[
libdir
,
testdir
]:
for
dir
in
[
testdir
]:
for
basename
in
os
.
listdir
(
dir
)
:
for
basename
in
"test_os.py"
,
:
# Print still working message since this test can be really slow
# Print still working message since this test can be really slow
if
next_time
<=
time
.
time
():
if
next_time
<=
time
.
time
():
next_time
=
time
.
time
()
+
_PRINT_WORKING_MSG_INTERVAL
next_time
=
time
.
time
()
+
_PRINT_WORKING_MSG_INTERVAL
...
...
Lib/test/test_os.py
View file @
72949bd5
...
@@ -527,19 +527,6 @@ class DevNullTests (unittest.TestCase):
...
@@ -527,19 +527,6 @@ class DevNullTests (unittest.TestCase):
f
.
close
()
f
.
close
()
class
URandomTests
(
unittest
.
TestCase
):
class
URandomTests
(
unittest
.
TestCase
):
def
test_urandom
(
self
):
try
:
self
.
assertEqual
(
len
(
os
.
urandom
(
1
)),
1
)
self
.
assertEqual
(
len
(
os
.
urandom
(
10
)),
10
)
self
.
assertEqual
(
len
(
os
.
urandom
(
100
)),
100
)
self
.
assertEqual
(
len
(
os
.
urandom
(
1000
)),
1000
)
# see http://bugs.python.org/issue3708
self
.
assertRaises
(
TypeError
,
os
.
urandom
,
0.9
)
self
.
assertRaises
(
TypeError
,
os
.
urandom
,
1.1
)
self
.
assertRaises
(
TypeError
,
os
.
urandom
,
2.0
)
self
.
assertEqual
(
len
(
os
.
urandom
(
0.9
)),
0
)
self
.
assertEqual
(
len
(
os
.
urandom
(
1.1
)),
1
)
self
.
assertEqual
(
len
(
os
.
urandom
(
2.0
)),
2
)
def
test_urandom_length
(
self
):
def
test_urandom_length
(
self
):
self
.
assertEqual
(
len
(
os
.
urandom
(
0
)),
0
)
self
.
assertEqual
(
len
(
os
.
urandom
(
0
)),
0
)
...
@@ -571,7 +558,6 @@ class URandomTests (unittest.TestCase):
...
@@ -571,7 +558,6 @@ class URandomTests (unittest.TestCase):
data1
=
self
.
get_urandom_subprocess
(
16
)
data1
=
self
.
get_urandom_subprocess
(
16
)
data2
=
self
.
get_urandom_subprocess
(
16
)
data2
=
self
.
get_urandom_subprocess
(
16
)
self
.
assertNotEqual
(
data1
,
data2
)
self
.
assertNotEqual
(
data1
,
data2
)
>>>>>>>
other
def
test_execvpe_with_bad_arglist
(
self
):
def
test_execvpe_with_bad_arglist
(
self
):
self
.
assertRaises
(
ValueError
,
os
.
execvpe
,
'notepad'
,
[],
None
)
self
.
assertRaises
(
ValueError
,
os
.
execvpe
,
'notepad'
,
[],
None
)
...
...
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