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
42b1d612
Commit
42b1d612
authored
Dec 06, 2018
by
Serhiy Storchaka
Committed by
GitHub
Dec 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-33023: Fix NotImplemented to NotImplementedError. (GH-10934)
parent
20428527
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
Lib/idlelib/debugger_r.py
Lib/idlelib/debugger_r.py
+1
-1
Lib/ssl.py
Lib/ssl.py
+2
-2
Lib/test/test_ssl.py
Lib/test/test_ssl.py
+6
-1
No files found.
Lib/idlelib/debugger_r.py
View file @
42b1d612
...
@@ -157,7 +157,7 @@ class IdbAdapter:
...
@@ -157,7 +157,7 @@ class IdbAdapter:
#----------called by a DictProxy----------
#----------called by a DictProxy----------
def
dict_keys
(
self
,
did
):
def
dict_keys
(
self
,
did
):
raise
NotImplemented
(
"dict_keys not public or pickleable"
)
raise
NotImplemented
Error
(
"dict_keys not public or pickleable"
)
## dict = dicttable[did]
## dict = dicttable[did]
## return dict.keys()
## return dict.keys()
...
...
Lib/ssl.py
View file @
42b1d612
...
@@ -884,7 +884,7 @@ class SSLSocket(socket):
...
@@ -884,7 +884,7 @@ class SSLSocket(socket):
return
self
.
_sslobj
.
session_reused
return
self
.
_sslobj
.
session_reused
def
dup
(
self
):
def
dup
(
self
):
raise
NotImplemented
(
"Can't dup() %s instances"
%
raise
NotImplemented
Error
(
"Can't dup() %s instances"
%
self
.
__class__
.
__name__
)
self
.
__class__
.
__name__
)
def
_checkClosed
(
self
,
msg
=
None
):
def
_checkClosed
(
self
,
msg
=
None
):
...
...
Lib/test/test_ssl.py
View file @
42b1d612
...
@@ -463,8 +463,12 @@ class BasicSocketTests(unittest.TestCase):
...
@@ -463,8 +463,12 @@ class BasicSocketTests(unittest.TestCase):
self
.
assertRaises
(
OSError
,
ss
.
recvfrom_into
,
bytearray
(
b'x'
),
1
)
self
.
assertRaises
(
OSError
,
ss
.
recvfrom_into
,
bytearray
(
b'x'
),
1
)
self
.
assertRaises
(
OSError
,
ss
.
send
,
b'x'
)
self
.
assertRaises
(
OSError
,
ss
.
send
,
b'x'
)
self
.
assertRaises
(
OSError
,
ss
.
sendto
,
b'x'
,
(
'0.0.0.0'
,
0
))
self
.
assertRaises
(
OSError
,
ss
.
sendto
,
b'x'
,
(
'0.0.0.0'
,
0
))
self
.
assertRaises
(
NotImplementedError
,
ss
.
dup
)
self
.
assertRaises
(
NotImplementedError
,
ss
.
sendmsg
,
self
.
assertRaises
(
NotImplementedError
,
ss
.
sendmsg
,
[
b'x'
],
(),
0
,
(
'0.0.0.0'
,
0
))
[
b'x'
],
(),
0
,
(
'0.0.0.0'
,
0
))
self
.
assertRaises
(
NotImplementedError
,
ss
.
recvmsg
,
100
)
self
.
assertRaises
(
NotImplementedError
,
ss
.
recvmsg_into
,
[
bytearray
(
100
)])
def
test_timeout
(
self
):
def
test_timeout
(
self
):
# Issue #8524: when creating an SSL socket, the timeout of the
# Issue #8524: when creating an SSL socket, the timeout of the
...
@@ -3382,10 +3386,11 @@ class ThreadedTests(unittest.TestCase):
...
@@ -3382,10 +3386,11 @@ class ThreadedTests(unittest.TestCase):
# Make sure sendmsg et al are disallowed to avoid
# Make sure sendmsg et al are disallowed to avoid
# inadvertent disclosure of data and/or corruption
# inadvertent disclosure of data and/or corruption
# of the encrypted data stream
# of the encrypted data stream
self
.
assertRaises
(
NotImplementedError
,
s
.
dup
)
self
.
assertRaises
(
NotImplementedError
,
s
.
sendmsg
,
[
b"data"
])
self
.
assertRaises
(
NotImplementedError
,
s
.
sendmsg
,
[
b"data"
])
self
.
assertRaises
(
NotImplementedError
,
s
.
recvmsg
,
100
)
self
.
assertRaises
(
NotImplementedError
,
s
.
recvmsg
,
100
)
self
.
assertRaises
(
NotImplementedError
,
self
.
assertRaises
(
NotImplementedError
,
s
.
recvmsg_into
,
bytearray
(
100
)
)
s
.
recvmsg_into
,
[
bytearray
(
100
)]
)
s
.
write
(
b"over
\
n
"
)
s
.
write
(
b"over
\
n
"
)
self
.
assertRaises
(
ValueError
,
s
.
recv
,
-
1
)
self
.
assertRaises
(
ValueError
,
s
.
recv
,
-
1
)
...
...
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