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
bacf1bf3
Commit
bacf1bf3
authored
Dec 19, 2012
by
Andrew Svetlov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace threw with raised (#16714)
parent
bd644608
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Lib/test/test_urllib2.py
Lib/test/test_urllib2.py
+1
-1
Lib/test/test_winreg.py
Lib/test/test_winreg.py
+1
-1
No files found.
Lib/test/test_urllib2.py
View file @
bacf1bf3
...
...
@@ -1148,7 +1148,7 @@ class HandlerTests(unittest.TestCase):
)
def
test_basic_and_digest_auth_handlers
(
self
):
# HTTPDigestAuthHandler
threw
an exception if it couldn't handle a 40*
# HTTPDigestAuthHandler
raised
an exception if it couldn't handle a 40*
# response (http://python.org/sf/1479302), where it should instead
# return None to allow another handler (especially
# HTTPBasicAuthHandler) to handle the response.
...
...
Lib/test/test_winreg.py
View file @
bacf1bf3
...
...
@@ -267,7 +267,7 @@ class LocalWinregTests(BaseWinregTests):
def
test_long_key
(
self
):
# Issue2810, in 2.6 and 3.1 when the key name was exactly 256
# characters, EnumKey
threw
"WindowsError: More data is
# characters, EnumKey
raised
"WindowsError: More data is
# available"
name
=
'x'
*
256
try
:
...
...
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