Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
bpo-10572: Move sqlite3 tests to Lib/test#29304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from all commits
Commits
Show all changes
18 commits Select commit Hold shift + click to select a range
0a32778 Reorganise files
1333aa9 Fixup Lib/test/test_sqlite3/__init__.py
f5f1bde Add NEWS
195709a Update Makefile
571a515 Fix inter-test includes
351dcae Fixup PCbuild
f8889d2 Revert 571a51573639ab51ca23fcad4ee2d406c58b1de5
b6f50d9 Allow ./python -m test.test_sqlite3
cbb18a9 Fixup __init__.py debug message
7f2ee3b Simplify __init__
bca9a72 Update Lib/test/test_sqlite3/__main__.py
35f6334 Address review: remove useless import
52b9164 Revert "Address review: remove useless import"
5d5e84f Address review: remove uneeded 'if __name__ == "__main__"'
75fe05b Add comment and clean up __init__
76b8533 Add a period
brettcannon 200d2fc Add a period
brettcannon f0b13eb Add a period
brettcannon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Empty file.
This file was deleted.
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| from test.support import import_helper, load_package_tests, verbose | ||
| # Skip test if _sqlite3 module not installed. | ||
| import_helper.import_module('_sqlite3') | ||
| import unittest | ||
| import os | ||
| import sqlite3 | ||
| # Implement the unittest "load tests" protocol. | ||
| def load_tests(*args): | ||
| pkg_dir = os.path.dirname(__file__) | ||
| return load_package_tests(pkg_dir, *args) | ||
| if verbose: | ||
| print("test_sqlite3: testing with version", | ||
| "{!r}, sqlite_version{!r}".format(sqlite3.version, | ||
| sqlite3.sqlite_version)) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| from test.test_sqlite3 import load_tests # Needed for the "load tests" protocol. | ||
| import unittest | ||
| if __name__ == "__main__": | ||
| unittest.main() |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions 2 Misc/NEWS.d/next/Library/2021-01-07-01-25-38.bpo-10572.gEEZ9z.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| Move :mod:`sqlite3` tests to ``/Lib/test/test_sqlite3``. Patch by Erlend E. | ||
| Aasland. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.