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
a24348ce
Commit
a24348ce
authored
Nov 22, 2013
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make some tests more verbose in the face of failure
parent
baacf4d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Lib/test/test_module.py
Lib/test/test_module.py
+6
-2
No files found.
Lib/test/test_module.py
View file @
a24348ce
...
@@ -191,8 +191,12 @@ a = A(destroyed)"""
...
@@ -191,8 +191,12 @@ a = A(destroyed)"""
def
test_module_repr_source
(
self
):
def
test_module_repr_source
(
self
):
r
=
repr
(
unittest
)
r
=
repr
(
unittest
)
self
.
assertEqual
(
r
[:
25
],
"<module 'unittest' from '"
)
starts_with
=
"<module 'unittest' from '"
self
.
assertEqual
(
r
[
-
13
:],
"__init__.py'>"
)
ends_with
=
"__init__.py'>"
self
.
assertEqual
(
r
[:
len
(
starts_with
)],
starts_with
,
'{!r} does not start with {!r}'
.
format
(
r
,
starts_with
))
self
.
assertEqual
(
r
[
-
len
(
ends_with
):],
ends_with
,
'{!r} does not end with {!r}'
.
format
(
r
,
ends_with
))
def
test_module_finalization_at_shutdown
(
self
):
def
test_module_finalization_at_shutdown
(
self
):
# Module globals and builtins should still be available during shutdown
# Module globals and builtins should still be available during shutdown
...
...
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