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
c2ecac47
Commit
c2ecac47
authored
Apr 12, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#17692: test_sqlite now works with unittest test discovery. Patch by Zachary Ware.
parent
1eafd107
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
Lib/test/test_sqlite.py
Lib/test/test_sqlite.py
+5
-4
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_sqlite.py
View file @
c2ecac47
...
...
@@ -3,21 +3,22 @@ import test.support
# Skip test if _sqlite3 module not installed
test
.
support
.
import_module
(
'_sqlite3'
)
import
unittest
import
sqlite3
from
sqlite3.test
import
(
dbapi
,
types
,
userfunctions
,
factory
,
transactions
,
hooks
,
regression
,
dump
)
def
test_main
(
):
def
load_tests
(
*
args
):
if
test
.
support
.
verbose
:
print
(
"test_sqlite: testing with version"
,
"{!r}, sqlite_version {!r}"
.
format
(
sqlite3
.
version
,
sqlite3
.
sqlite_version
))
test
.
support
.
run_unittest
(
dbapi
.
suite
(),
types
.
suite
(),
return
unittest
.
TestSuite
([
dbapi
.
suite
(),
types
.
suite
(),
userfunctions
.
suite
(),
factory
.
suite
(),
transactions
.
suite
(),
hooks
.
suite
(),
regression
.
suite
(),
dump
.
suite
())
dump
.
suite
()
]
)
if
__name__
==
"__main__"
:
test_
main
()
unittest
.
main
()
Misc/NEWS
View file @
c2ecac47
...
...
@@ -79,6 +79,9 @@ Tests
-
Issue
#
17690
:
test_time
now
works
with
unittest
test
discovery
.
Patch
by
Zachary
Ware
.
-
Issue
#
17692
:
test_sqlite
now
works
with
unittest
test
discovery
.
Patch
by
Zachary
Ware
.
Documentation
-------------
...
...
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