Skip to content

Commit 8d6b2fc

Browse files
authored
#1255: Adjusted tests for new Python 3.12 standard flavor (#569)
related to exasol/script-languages-release#1255
1 parent e494ce9 commit 8d6b2fc

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

test_container/tests/test/standard-flavor/8.0/python/available-packages.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ def setUp(self):
4040
("pyexasol",),
4141
("EXASOL",),
4242
("paramiko",),
43-
("pysftp",),
4443
("simplejson",),
4544
("simdjson",),
4645
("pybase64",),

test_container/tests/test/standard-flavor/all/python/import_modules.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,17 @@ def create_import_for_all_submodules_udf(self):
143143
"tenacity.tornadoweb",
144144
"joblib.testing",
145145
"joblib.test",
146+
"pydantic.v1.mypy", #Used for pydantic mypy plugin, which is not useful in UDFs
147+
"pydantic.mypy", #Used for pydantic mypy plugin, which is not useful in UDFs
148+
"pydevd_plugins.extensions",
149+
"pyximport.pyxbuild", #Still uses distutils which was removed in Python 3.12, see https://github.com/cython/cython/blob/master/pyximport/pyxbuild.py
150+
"sagemaker.amtviz", # Visualisation not needed in UDF's
151+
"sagemaker.aws_batch",
152+
"sagemaker.mlflow",
153+
"sagemaker.modules.train.container_drivers.distributed_drivers.mpi_driver",
154+
"sklearn.externals.array_api_compat",
155+
"starlette",
156+
"uvicorn",
146157
}
147158
excluded_submodules = (
148159
"sphinxext",
@@ -235,9 +246,9 @@ def test_import_all_modules(self):
235246
root_modules = self.get_all_root_modules()
236247
self.create_import_for_all_submodules_udf()
237248
for root_module in root_modules:
238-
# with UdfDebugger(test_case=self):
249+
print("Running import check for root module:", root_module)
239250
rows = self.query(f'''SELECT import_all_modules.import_all_submodules('{root_module}') FROM dual''')
240-
print("Number of modules:", len(rows))
251+
print("Number of modules:", len(rows), " for root module:", root_module)
241252
failed_imports = [(row[0], row[1]) for row in rows if row[2] == "ERROR"]
242253
for i in failed_imports:
243254
print(i[0])
File renamed without changes.

0 commit comments

Comments
 (0)