diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2022-01-22 16:03:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-22 16:03:56 (GMT) |
commit | 55f4ec460ee6dcffc26180fd982ad89083c9acb1 (patch) | |
tree | 7f7a4ebb56aa8df5105c3ed85496b90e98bcfa37 /Lib/test/test_sqlite3 | |
parent | 101a184d49756043a0c39dde6eca08b1891137a2 (diff) | |
download | cpython-55f4ec460ee6dcffc26180fd982ad89083c9acb1.zip cpython-55f4ec460ee6dcffc26180fd982ad89083c9acb1.tar.gz cpython-55f4ec460ee6dcffc26180fd982ad89083c9acb1.tar.bz2 |
bpo-46425: use absolute imports in `test_sqlite3` (GH-30676)
Diffstat (limited to 'Lib/test/test_sqlite3')
-rw-r--r-- | Lib/test/test_sqlite3/test_hooks.py | 2 | ||||
-rw-r--r-- | Lib/test/test_sqlite3/test_regression.py | 5 | ||||
-rw-r--r-- | Lib/test/test_sqlite3/test_transactions.py | 2 | ||||
-rw-r--r-- | Lib/test/test_sqlite3/test_userfunctions.py | 2 |
4 files changed, 5 insertions, 6 deletions
diff --git a/Lib/test/test_sqlite3/test_hooks.py b/Lib/test/test_sqlite3/test_hooks.py index 9e5e53a..d4790cf 100644 --- a/Lib/test/test_sqlite3/test_hooks.py +++ b/Lib/test/test_sqlite3/test_hooks.py @@ -24,7 +24,7 @@ import unittest import sqlite3 as sqlite from test.support.os_helper import TESTFN, unlink -from .test_userfunctions import with_tracebacks +from test.test_sqlite3.test_userfunctions import with_tracebacks class CollationTests(unittest.TestCase): def test_create_collation_not_string(self): diff --git a/Lib/test/test_sqlite3/test_regression.py b/Lib/test/test_sqlite3/test_regression.py index b527053..211f763 100644 --- a/Lib/test/test_sqlite3/test_regression.py +++ b/Lib/test/test_sqlite3/test_regression.py @@ -21,14 +21,13 @@ # 3. This notice may not be removed or altered from any source distribution. import datetime -import sys import unittest import sqlite3 as sqlite import weakref import functools -from test import support -from .test_dbapi import memory_database, managed_connect, cx_limit +from test import support +from test.test_sqlite3.test_dbapi import memory_database, managed_connect, cx_limit class RegressionTests(unittest.TestCase): diff --git a/Lib/test/test_sqlite3/test_transactions.py b/Lib/test/test_sqlite3/test_transactions.py index 55cf8f1..040ab1e 100644 --- a/Lib/test/test_sqlite3/test_transactions.py +++ b/Lib/test/test_sqlite3/test_transactions.py @@ -23,7 +23,7 @@ import os, unittest import sqlite3 as sqlite -from .test_dbapi import memory_database +from test.test_sqlite3.test_dbapi import memory_database def get_db_path(): return "sqlite_testdb" diff --git a/Lib/test/test_sqlite3/test_userfunctions.py b/Lib/test/test_sqlite3/test_userfunctions.py index 996437b..b290608 100644 --- a/Lib/test/test_sqlite3/test_userfunctions.py +++ b/Lib/test/test_sqlite3/test_userfunctions.py @@ -32,7 +32,7 @@ import unittest.mock import sqlite3 as sqlite from test.support import bigmemtest, catch_unraisable_exception -from .test_dbapi import cx_limit +from test.test_sqlite3.test_dbapi import cx_limit def with_tracebacks(exc, regex="", name=""): |