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
910df329
Commit
910df329
authored
Mar 13, 2012
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#8315: add automatic unittest test discovery in test.test_email
parent
d2edfd64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
Lib/test/test_email/__init__.py
Lib/test/test_email/__init__.py
+10
-0
Misc/NEWS
Misc/NEWS
+5
-0
No files found.
Lib/test/test_email/__init__.py
View file @
910df329
...
...
@@ -5,6 +5,16 @@ import test.support
import
email
from
test.test_email
import
__file__
as
landmark
# Run all tests in package for '-m unittest test.test_email'
def
load_tests
(
loader
,
standard_tests
,
pattern
):
this_dir
=
os
.
path
.
dirname
(
__file__
)
if
pattern
is
None
:
pattern
=
"test*"
package_tests
=
loader
.
discover
(
start_dir
=
this_dir
,
pattern
=
pattern
)
standard_tests
.
addTests
(
package_tests
)
return
standard_tests
# used by regrtest and __main__.
def
test_main
():
here
=
os
.
path
.
dirname
(
__file__
)
...
...
Misc/NEWS
View file @
910df329
...
...
@@ -83,6 +83,11 @@ Extension Modules
-
Issue
#
14259
:
The
finditer
()
method
of
re
objects
did
not
take
any
keyword
arguments
,
contrary
to
the
documentation
.
Tests
-----
-
Issue
#
8315
:
(
partial
fix
)
python
-
m
unittest
test
.
test_email
now
works
.
What
's New in Python 3.3.0 Alpha 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