Skip to content

Commit 63347d8

Browse files
author
Erlend E. Aasland
committed
Squeeze a couple of lines in test_module_constants()
1 parent a30ffb3 commit 63347d8

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Lib/sqlite3/test/dbapi.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,7 @@ def test_module_constants(self):
233233
"SQLITE_WARNING_AUTOINDEX",
234234
]
235235
if sqlite.version_info >= (3, 8, 1):
236-
consts += [
237-
"SQLITE_CANTOPEN_CONVPATH",
238-
"SQLITE_IOERR_CONVPATH",
239-
]
236+
consts += ["SQLITE_CANTOPEN_CONVPATH", "SQLITE_IOERR_CONVPATH"]
240237
if sqlite.version_info >= (3, 8, 10):
241238
consts += [
242239
"SQLITE_AUTH_USER",
@@ -281,10 +278,7 @@ def test_module_constants(self):
281278
if sqlite.version_info >= (3, 34, 0):
282279
const.append("SQLITE_IOERR_CORRUPTFS")
283280
if sqlite.version_info >= (3, 37, 0):
284-
consts += [
285-
"SQLITE_CANTOPEN_EXISTS",
286-
"SQLITE_CONSTRAINT_DATATYPE",
287-
]
281+
consts += ["SQLITE_CANTOPEN_EXISTS", "SQLITE_CONSTRAINT_DATATYPE"]
288282
for const in consts:
289283
with self.subTest(const=const):
290284
self.assertTrue(hasattr(sqlite, const))

0 commit comments

Comments
 (0)