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
f78f5b11
Commit
f78f5b11
authored
Feb 11, 2013
by
Michael Foord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correction to issue 17052 fix
parent
8fd396bd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Lib/unittest/main.py
Lib/unittest/main.py
+1
-1
Lib/unittest/test/test_discovery.py
Lib/unittest/test/test_discovery.py
+1
-1
Misc/NEWS
Misc/NEWS
+1
-1
No files found.
Lib/unittest/main.py
View file @
f78f5b11
...
@@ -199,7 +199,7 @@ class TestProgram(object):
...
@@ -199,7 +199,7 @@ class TestProgram(object):
def
_do_discovery
(
self
,
argv
,
Loader
=
None
):
def
_do_discovery
(
self
,
argv
,
Loader
=
None
):
if
Loader
is
None
:
if
Loader
is
None
:
Loader
=
self
.
testLoader
Loader
=
lambda
:
self
.
testLoader
# handle command line args for test discovery
# handle command line args for test discovery
self
.
progName
=
'%s discover'
%
self
.
progName
self
.
progName
=
'%s discover'
%
self
.
progName
...
...
Lib/unittest/test/test_discovery.py
View file @
f78f5b11
...
@@ -269,7 +269,7 @@ class TestDiscovery(unittest.TestCase):
...
@@ -269,7 +269,7 @@ class TestDiscovery(unittest.TestCase):
self
.
args
.
append
((
start_dir
,
pattern
,
top_level_dir
))
self
.
args
.
append
((
start_dir
,
pattern
,
top_level_dir
))
return
'tests'
return
'tests'
program
.
testLoader
=
Loader
program
.
testLoader
=
Loader
()
program
.
_do_discovery
([
'-v'
])
program
.
_do_discovery
([
'-v'
])
self
.
assertEqual
(
Loader
.
args
,
[(
'.'
,
'test*.py'
,
None
)])
self
.
assertEqual
(
Loader
.
args
,
[(
'.'
,
'test*.py'
,
None
)])
...
...
Misc/NEWS
View file @
f78f5b11
...
@@ -221,7 +221,7 @@ Core and Builtins
...
@@ -221,7 +221,7 @@ Core and Builtins
Library
Library
-------
-------
- Issue #17
50
2: unittest discovery should use self.testLoader.
- Issue #17
05
2: unittest discovery should use self.testLoader.
- Issue #17141: random.vonmisesvariate() no more hangs for large kappas.
- Issue #17141: random.vonmisesvariate() no more hangs for large kappas.
...
...
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