Skip to content

Commit

Permalink
bpo-46425: use absolute imports in test_sqlite3 (GH-30676)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Jan 22, 2022
1 parent 101a184 commit 55f4ec4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Lib/test/test_sqlite3/test_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
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):
Expand Down
5 changes: 2 additions & 3 deletions Lib/test/test_sqlite3/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_sqlite3/test_transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_sqlite3/test_userfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
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=""):
Expand Down

0 comments on commit 55f4ec4

Please sign in to comment.