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
2d2af91d
Commit
2d2af91d
authored
Dec 04, 2015
by
Zachary Ware
Browse files
Options
Browse Files
Download
Plain Diff
Closes #25795: Merge with 3.5
parents
da0f2a1f
ac28b796
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
13 additions
and
7 deletions
+13
-7
Lib/test/test_fork1.py
Lib/test/test_fork1.py
+1
-0
Lib/test/test_list.py
Lib/test/test_list.py
+1
-0
Lib/test/test_pyclbr.py
Lib/test/test_pyclbr.py
+2
-2
Lib/test/test_telnetlib.py
Lib/test/test_telnetlib.py
+5
-5
Lib/test/test_tuple.py
Lib/test/test_tuple.py
+1
-0
Lib/test/test_userdict.py
Lib/test/test_userdict.py
+1
-0
Lib/test/test_userlist.py
Lib/test/test_userlist.py
+1
-0
Lib/test/test_wait4.py
Lib/test/test_wait4.py
+1
-0
No files found.
Lib/test/test_fork1.py
View file @
2d2af91d
...
...
@@ -6,6 +6,7 @@ import os
import
signal
import
sys
import
time
import
unittest
from
test.fork_wait
import
ForkWait
from
test.support
import
(
reap_children
,
get_attribute
,
...
...
Lib/test/test_list.py
View file @
2d2af91d
import
sys
from
test
import
support
,
list_tests
import
pickle
import
unittest
class
ListTest
(
list_tests
.
CommonTest
):
type2test
=
list
...
...
Lib/test/test_pyclbr.py
View file @
2d2af91d
...
...
@@ -5,7 +5,7 @@
import
sys
from
types
import
FunctionType
,
MethodType
,
BuiltinFunctionType
import
pyclbr
from
unittest
import
TestCase
from
unittest
import
TestCase
,
main
as
unittest_main
StaticMethodType
=
type
(
staticmethod
(
lambda
:
None
))
ClassMethodType
=
type
(
classmethod
(
lambda
c
:
None
))
...
...
@@ -173,4 +173,4 @@ class PyclbrTest(TestCase):
if
__name__
==
"__main__"
:
unittest
.
main
()
unittest
_
main
()
Lib/test/test_telnetlib.py
View file @
2d2af91d
...
...
@@ -4,8 +4,8 @@ import telnetlib
import
time
import
contextlib
from
unittest
import
TestCase
from
test
import
support
import
unittest
threading
=
support
.
import_module
(
'threading'
)
HOST
=
support
.
HOST
...
...
@@ -21,7 +21,7 @@ def server(evt, serv):
finally
:
serv
.
close
()
class
GeneralTests
(
TestCase
):
class
GeneralTests
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
evt
=
threading
.
Event
()
...
...
@@ -170,7 +170,7 @@ def test_telnet(reads=(), cls=TelnetAlike):
telnet
.
_messages
=
''
# debuglevel output
return
telnet
class
ExpectAndReadTestCase
(
TestCase
):
class
ExpectAndReadTestCase
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
old_selector
=
telnetlib
.
_TelnetSelector
telnetlib
.
_TelnetSelector
=
MockSelector
...
...
@@ -289,7 +289,7 @@ class nego_collector(object):
tl
=
telnetlib
class
WriteTests
(
TestCase
):
class
WriteTests
(
unittest
.
TestCase
):
'''The only thing that write does is replace each tl.IAC for
tl.IAC+tl.IAC'''
...
...
@@ -305,7 +305,7 @@ class WriteTests(TestCase):
written
=
b''
.
join
(
telnet
.
sock
.
writes
)
self
.
assertEqual
(
data
.
replace
(
tl
.
IAC
,
tl
.
IAC
+
tl
.
IAC
),
written
)
class
OptionTests
(
TestCase
):
class
OptionTests
(
unittest
.
TestCase
):
# RFC 854 commands
cmds
=
[
tl
.
AO
,
tl
.
AYT
,
tl
.
BRK
,
tl
.
EC
,
tl
.
EL
,
tl
.
GA
,
tl
.
IP
,
tl
.
NOP
]
...
...
Lib/test/test_tuple.py
View file @
2d2af91d
from
test
import
support
,
seq_tests
import
unittest
import
gc
import
pickle
...
...
Lib/test/test_userdict.py
View file @
2d2af91d
# Check every path through every method of UserDict
from
test
import
support
,
mapping_tests
import
unittest
import
collections
d0
=
{}
...
...
Lib/test/test_userlist.py
View file @
2d2af91d
...
...
@@ -2,6 +2,7 @@
from
collections
import
UserList
from
test
import
support
,
list_tests
import
unittest
class
UserListTest
(
list_tests
.
CommonTest
):
type2test
=
UserList
...
...
Lib/test/test_wait4.py
View file @
2d2af91d
...
...
@@ -4,6 +4,7 @@
import
os
import
time
import
sys
import
unittest
from
test.fork_wait
import
ForkWait
from
test.support
import
reap_children
,
get_attribute
...
...
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