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
8844153d
Commit
8844153d
authored
Nov 01, 2009
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_normalization should skip and not crash when the resource isn't available
parent
373469a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Lib/test/test_normalization.py
Lib/test/test_normalization.py
+5
-2
No files found.
Lib/test/test_normalization.py
View file @
8844153d
...
...
@@ -40,6 +40,11 @@ def unistr(data):
class
NormalizationTest
(
unittest
.
TestCase
):
def
test_main
(
self
):
part1_data
=
{}
# Hit the exception early
try
:
open_urlresource
(
TESTDATAURL
)
except
IOError
:
self
.
skipTest
(
"Could not retrieve "
+
TESTDATAURL
)
for
line
in
open_urlresource
(
TESTDATAURL
):
if
'#'
in
line
:
line
=
line
.
split
(
'#'
)[
0
]
...
...
@@ -95,8 +100,6 @@ class NormalizationTest(unittest.TestCase):
def
test_main
():
# Hit the exception early
open_urlresource
(
TESTDATAURL
)
run_unittest
(
NormalizationTest
)
if
__name__
==
"__main__"
:
...
...
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