Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file removed 0 Lib/sqlite3/test/__init__.py
Empty file.
20 changes: 0 additions & 20 deletions 20 Lib/test/test_sqlite.py

This file was deleted.

18 changes: 18 additions & 0 deletions 18 Lib/test/test_sqlite3/__init__.py
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)
Comment thread
erlend-aasland marked this conversation as resolved.

if verbose:
print("test_sqlite3: testing with version",
"{!r}, sqlite_version {!r}".format(sqlite3.version,
sqlite3.sqlite_version))
5 changes: 5 additions & 0 deletions 5 Lib/test/test_sqlite3/__main__.py
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.
1 change: 0 additions & 1 deletion 1 Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
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.
12 changes: 11 additions & 1 deletion 12 PCbuild/lib.pyproj
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.