14
0

- Do not kill moto_server three minutes into the testsuite. (bsc#1221663)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-smart-open?expand=0&rev=10
This commit is contained in:
2024-03-20 06:07:23 +00:00
committed by Git OBS Bridge
parent cb1ba95e2c
commit bc1913d505
2 changed files with 8 additions and 1 deletions

View File

@@ -74,10 +74,12 @@ Includes support for S3, HDFS, gzip, bz2, etc.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
timeout 3m moto_server -p5000 2>/dev/null &
moto_server -p5000 2>/dev/null &
server_pid=$!
export SO_ENABLE_MOTO_SERVER=1
# Requires network
%pytest -rs -k 'not (test_http_gz or test_s3_gzip_compress_sanity)' smart_open/
kill $server_pid
%files %{python_files}
%doc README.rst