Visitar URL original
bpo-10572: Move `sqlite3` tests to `Lib/test` by erlend-aasland · Pull Request #29304 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20221223173808/https://github.com/python/cpython/pull/29304/files
Skip to content
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

bpo-10572: Move sqlite3 tests to Lib/test #29304

Merged
merged 18 commits into from Oct 29, 2021
Merged
Empty file.

This file was deleted.

@@ -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)
erlend-aasland marked this conversation as resolved.
Show resolved Hide resolved

if verbose:
print("test_sqlite3: testing with version",
"{!r}, sqlite_version {!r}".format(sqlite3.version,
sqlite3.sqlite_version))
@@ -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.
@@ -1553,7 +1553,6 @@ TESTSUBDIRS= ctypes/test \
lib2to3/tests/data \
lib2to3/tests/data/fixers \
lib2to3/tests/data/fixers/myfixes \
sqlite3/test \
test test/audiodata \
test/capath test/cjkencodings \
test/data test/decimaltestdata \
@@ -0,0 +1,2 @@
Move :mod:`sqlite3` tests to ``/Lib/test/test_sqlite3``. Patch by Erlend E.
Aasland.
@@ -1272,7 +1272,17 @@
<Compile Include="test\test_sort.py" />
<Compile Include="test\test_source_encoding.py" />
<Compile Include="test\test_spwd.py" />
<Compile Include="test\test_sqlite.py" />
<Compile Include="test\test_sqlite3" />
<Compile Include="test\test_sqlite3\__init__.py" />
<Compile Include="test\test_sqlite3\test_backup.py" />
<Compile Include="test\test_sqlite3\test_dbapi.py" />
<Compile Include="test\test_sqlite3\test_dump.py" />
<Compile Include="test\test_sqlite3\test_factory.py" />
<Compile Include="test\test_sqlite3\test_hooks.py" />
<Compile Include="test\test_sqlite3\test_regression.py" />
<Compile Include="test\test_sqlite3\test_transactions.py" />
<Compile Include="test\test_sqlite3\test_types.py" />
<Compile Include="test\test_sqlite3\test_userfunctions.py" />
<Compile Include="test\test_ssl.py" />
<Compile Include="test\test_startfile.py" />
<Compile Include="test\test_stat.py" />