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
520378f8
Commit
520378f8
authored
Mar 01, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#17079: test_ctypes now works with unittest test discovery. Patch by Zachary Ware.
parent
4b231a7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
Lib/test/test_ctypes.py
Lib/test/test_ctypes.py
+4
-4
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_ctypes.py
View file @
520378f8
import
unittest
from
test.support
import
run_unittest
,
import_module
from
test.support
import
import_module
# Skip tests if _ctypes module was not built.
import_module
(
'_ctypes'
)
import
ctypes.test
def
test_main
(
):
def
load_tests
(
*
args
):
skipped
,
testcases
=
ctypes
.
test
.
get_tests
(
ctypes
.
test
,
"test_*.py"
,
verbosity
=
0
)
suites
=
[
unittest
.
makeSuite
(
t
)
for
t
in
testcases
]
r
un_unittest
(
unittest
.
TestSuite
(
suites
)
)
r
eturn
unittest
.
TestSuite
(
suites
)
if
__name__
==
"__main__"
:
test_
main
()
unittest
.
main
()
Misc/NEWS
View file @
520378f8
...
...
@@ -644,6 +644,9 @@ Tests
- Issue #15539: Added regression tests for Tools/scripts/pindent.py.
- Issue #17079: test_ctypes now works with unittest test discovery.
Patch by Zachary Ware.
- Issue #17304: test_hash now works with unittest test discovery.
Patch by Zachary Ware.
...
...
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