Skip to content

Commit 9c25300

Browse files
committed
Move datetime import to module level in tests
1 parent b50c092 commit 9c25300

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_cursor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
3. Unknown parameter keys raise ProgrammingError.
99
"""
1010

11+
from datetime import date
12+
1113
import pytest
1214
from unittest.mock import MagicMock
1315

@@ -74,8 +76,6 @@ def test_empty_bytes(self):
7476

7577
def test_non_primitive_uses_str(self):
7678
"""Non-primitive types fall through to str() and get quoted as strings."""
77-
from datetime import date
78-
7979
assert _quote_value(date(2024, 1, 15)) == "'2024-01-15'"
8080

8181
def test_nan_raises(self):

0 commit comments

Comments
 (0)