Skip to content

Commit aff3629

Browse files
committed
[GR-47457] Enable sqlite3 on Windows
PullRequest: graalpython/2889
2 parents 42c331d + e712b78 commit aff3629

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_sqlite3.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3838
# SOFTWARE.
3939

40-
import os
41-
4240
try:
4341
import __graalpython__
4442
managed_launcher = __graalpython__.is_managed_launcher()
@@ -51,7 +49,7 @@ def test_basic_functionality():
5149
The main sqlite3 test suite will be silently skipped if the
5250
"_sqlite3" module is not available.
5351
"""
54-
if not managed_launcher and os.name != 'nt':
52+
if not managed_launcher:
5553
import sqlite3
5654
import _sqlite3
5755
conn = sqlite3.connect(':memory:')

mx.graalpython/suite.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@
555555
"bin/<lib:python-native>",
556556
"bin/python-native.lib",
557557
"bin/modules/_mmap<graalpy_ext:native>",
558+
"bin/modules/_sqlite3<graalpy_ext:native>",
558559
"bin/modules/_cpython_sre<graalpy_ext:native>",
559560
"bin/modules/_cpython_unicodedata<graalpy_ext:native>",
560561
"bin/modules/_cpython_struct<graalpy_ext:native>",

0 commit comments

Comments
 (0)