You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
install .whl file in </install/prefix> using installer module
run pytest with $PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
build is performed in env which is cut off from access to the public network (pytest is executed with -m "not network")
Here is pytest output:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-fsspec-2024.10.0-2.fc37.x86_64/usr/lib64/python3.10/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-fsspec-2024.10.0-2.fc37.x86_64/usr/lib/python3.10/site-packages+ /usr/bin/pytest -ra -m 'not network'============================= test session starts ==============================platform linux -- Python 3.10.14, pytest-8.2.2, pluggy-1.5.0rootdir: /home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0configfile: pyproject.tomlplugins: asyncio-0.23.8, mock-3.14.0, vcr-1.0.2asyncio: mode=strictcollected 1737 items / 9 skippedfsspec/implementations/tests/local/local_test.py ....................... [ 1%]........................................................................ [ 5%]........................................ [ 7%]fsspec/implementations/tests/memory/memory_test.py ..................... [ 8%]........................................................................ [ 13%].......................................... [ 15%]fsspec/implementations/tests/test_archive.py ........................... [ 17%]..........................................................ssssssssssssss [ 21%]sss [ 21%]fsspec/implementations/tests/test_cached.py ............................ [ 23%]..............ssssssssssss................................ [ 26%]fsspec/implementations/tests/test_common.py ssss [ 26%]fsspec/implementations/tests/test_data.py .. [ 26%]fsspec/implementations/tests/test_dirfs.py ............................. [ 28%]........................................................................ [ 32%]................................. [ 34%]fsspec/implementations/tests/test_ftp.py FFFFFFFF........... [ 35%]fsspec/implementations/tests/test_http.py .............................. [ 37%].......................... [ 38%]fsspec/implementations/tests/test_libarchive.py s [ 38%]fsspec/implementations/tests/test_local.py .s........................... [ 40%].s............................................................ss........ [ 44%]ss.sssss.......sss....s.......................... [ 47%]fsspec/implementations/tests/test_memory.py ............................ [ 49%].. [ 49%]fsspec/implementations/tests/test_reference.py .................s.....ss [ 50%]..sss [ 50%]fsspec/implementations/tests/test_sftp.py ssssssssssss [ 51%]fsspec/implementations/tests/test_tar.py ......................... [ 53%]fsspec/implementations/tests/test_webhdfs.py sssssssssss [ 53%]fsspec/implementations/tests/test_zip.py ................. [ 54%]fsspec/tests/test_api.py ...............x...... [ 55%]fsspec/tests/test_async.py .........s... [ 56%]fsspec/tests/test_caches.py ............................................ [ 59%]........................................................................ [ 63%]............................. [ 64%]fsspec/tests/test_callbacks.py ........ [ 65%]fsspec/tests/test_compression.py .....s [ 65%]fsspec/tests/test_config.py ....... [ 66%]fsspec/tests/test_core.py .............................................. [ 68%]...s.......s [ 69%]fsspec/tests/test_file.py ........... [ 70%]fsspec/tests/test_generic.py ...... [ 70%]fsspec/tests/test_mapping.py ................. [ 71%]fsspec/tests/test_parquet.py sssssssssssssssssssssssssssssssssssssssssss [ 73%]ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 78%]ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 82%]sssss [ 82%]fsspec/tests/test_registry.py ......s [ 82%]fsspec/tests/test_spec.py ....................x......................... [ 85%]........................................................................ [ 89%]........................................................................ [ 93%]....................................... [ 96%]fsspec/tests/test_utils.py ............................................. [ 98%]...................... [100%]=================================== FAILURES ===================================_____________________________ test_tls[False-FTP] ______________________________ftp = ('localhost', 2121), tls = False, exp_cls = <class 'ftplib.FTP'> @pytest.mark.parametrize( "tls,exp_cls", ( (False, FTP), (True, FTP_TLS), ), ) def test_tls(ftp, tls, exp_cls): host, port = ftp
> fs = FTPFileSystem(host, port, tls=tls)/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/tests/test_ftp.py:42:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/spec.py:81: in __call__ obj = super().__call__(*args, **kwargs)/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/ftp.py:75: in __init__ self._connect()/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/ftp.py:91: in _connect self.ftp.connect(self.host, self.port)/usr/lib64/python3.10/ftplib.py:158: in connect self.sock = socket.create_connection((self.host, self.port), self.timeout,/usr/lib64/python3.10/socket.py:845: in create_connection raise err_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _address = ('localhost', 2121), timeout = 30, source_address = None def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, source_address=None): """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. A host of '' or port 0 tells the OS to use the default. """ host, port = address err = None for res in getaddrinfo(host, port, 0, SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket(af, socktype, proto) if timeout is not _GLOBAL_DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address)
> sock.connect(sa)E ConnectionRefusedError: [Errno 111] Connection refused/usr/lib64/python3.10/socket.py:833: ConnectionRefusedError____________________________ test_tls[True-FTP_TLS] ____________________________ftp = ('localhost', 2121), tls = True, exp_cls = <class 'ftplib.FTP_TLS'> @pytest.mark.parametrize( "tls,exp_cls", ( (False, FTP), (True, FTP_TLS), ), ) def test_tls(ftp, tls, exp_cls): host, port = ftp
> fs = FTPFileSystem(host, port, tls=tls)/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/tests/test_ftp.py:42:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/spec.py:81: in __call__ obj = super().__call__(*args, **kwargs)/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/ftp.py:75: in __init__ self._connect()/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/ftp.py:91: in _connect self.ftp.connect(self.host, self.port)/usr/lib64/python3.10/ftplib.py:158: in connect self.sock = socket.create_connection((self.host, self.port), self.timeout,/usr/lib64/python3.10/socket.py:845: in create_connection raise err_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _address = ('localhost', 2121), timeout = 30, source_address = None def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, source_address=None): """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. A host of '' or port 0 tells the OS to use the default. """ host, port = address err = None for res in getaddrinfo(host, port, 0, SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket(af, socktype, proto) if timeout is not _GLOBAL_DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address)
> sock.connect(sa)E ConnectionRefusedError: [Errno 111] Connection refused/usr/lib64/python3.10/socket.py:833: ConnectionRefusedError_____________________________ test_basic[False--] ______________________________ftp = ('localhost', 2121), tls = False, username = '', password = '' @pytest.mark.parametrize( "tls,username,password", ( (False, "", ""), (True, "", ""), (False, "user", "pass"), (True, "user", "pass"), ), ) def test_basic(ftp, tls, username, password): host, port = ftp
> fs = FTPFileSystem(host, port, username, password, tls=tls)/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/tests/test_ftp.py:57:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/spec.py:81: in __call__ obj = super().__call__(*args, **kwargs)/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/ftp.py:75: in __init__ self._connect()/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/ftp.py:91: in _connect self.ftp.connect(self.host, self.port)/usr/lib64/python3.10/ftplib.py:158: in connect self.sock = socket.create_connection((self.host, self.port), self.timeout,/usr/lib64/python3.10/socket.py:845: in create_connection raise err_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _address = ('localhost', 2121), timeout = 30, source_address = None def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, source_address=None): """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. A host of '' or port 0 tells the OS to use the default. """ host, port = address err = None for res in getaddrinfo(host, port, 0, SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket(af, socktype, proto) if timeout is not _GLOBAL_DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address)
> sock.connect(sa)E ConnectionRefusedError: [Errno 111] Connection refused/usr/lib64/python3.10/socket.py:833: ConnectionRefusedError______________________________ test_basic[True--] ______________________________ftp = ('localhost', 2121), tls = True, username = '', password = '' @pytest.mark.parametrize( "tls,username,password", ( (False, "", ""), (True, "", ""), (False, "user", "pass"), (True, "user", "pass"), ), ) def test_basic(ftp, tls, username, password): host, port = ftp
> fs = FTPFileSystem(host, port, username, password, tls=tls)/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/tests/test_ftp.py:57:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/spec.py:81: in __call__ obj = super().__call__(*args, **kwargs)/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/ftp.py:75: in __init__ self._connect()/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/ftp.py:91: in _connect self.ftp.connect(self.host, self.port)/usr/lib64/python3.10/ftplib.py:158: in connect self.sock = socket.create_connection((self.host, self.port), self.timeout,/usr/lib64/python3.10/socket.py:845: in create_connection raise err_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _address = ('localhost', 2121), timeout = 30, source_address = None def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, source_address=None): """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. A host of '' or port 0 tells the OS to use the default. """ host, port = address err = None for res in getaddrinfo(host, port, 0, SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket(af, socktype, proto) if timeout is not _GLOBAL_DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address)
> sock.connect(sa)E ConnectionRefusedError: [Errno 111] Connection refused/usr/lib64/python3.10/socket.py:833: ConnectionRefusedError_________________________ test_basic[False-user-pass] __________________________ftp = ('localhost', 2121), tls = False, username = 'user', password = 'pass' @pytest.mark.parametrize( "tls,username,password", ( (False, "", ""), (True, "", ""), (False, "user", "pass"), (True, "user", "pass"), ), ) def test_basic(ftp, tls, username, password): host, port = ftp
> fs = FTPFileSystem(host, port, username, password, tls=tls)/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/tests/test_ftp.py:57:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/spec.py:81: in __call__ obj = super().__call__(*args, **kwargs)/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/ftp.py:75: in __init__ self._connect()/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/ftp.py:91: in _connect self.ftp.connect(self.host, self.port)/usr/lib64/python3.10/ftplib.py:158: in connect self.sock = socket.create_connection((self.host, self.port), self.timeout,/usr/lib64/python3.10/socket.py:845: in create_connection raise err_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _address = ('localhost', 2121), timeout = 30, source_address = None def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, source_address=None): """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. A host of '' or port 0 tells the OS to use the default. """ host, port = address err = None for res in getaddrinfo(host, port, 0, SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket(af, socktype, proto) if timeout is not _GLOBAL_DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address)
> sock.connect(sa)E ConnectionRefusedError: [Errno 111] Connection refused/usr/lib64/python3.10/socket.py:833: ConnectionRefusedError__________________________ test_basic[True-user-pass] __________________________ftp = ('localhost', 2121), tls = True, username = 'user', password = 'pass' @pytest.mark.parametrize( "tls,username,password", ( (False, "", ""), (True, "", ""), (False, "user", "pass"), (True, "user", "pass"), ), ) def test_basic(ftp, tls, username, password): host, port = ftp
> fs = FTPFileSystem(host, port, username, password, tls=tls)/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/tests/test_ftp.py:57:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/spec.py:81: in __call__ obj = super().__call__(*args, **kwargs)/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/ftp.py:75: in __init__ self._connect()/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/ftp.py:91: in _connect self.ftp.connect(self.host, self.port)/usr/lib64/python3.10/ftplib.py:158: in connect self.sock = socket.create_connection((self.host, self.port), self.timeout,/usr/lib64/python3.10/socket.py:845: in create_connection raise err_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _address = ('localhost', 2121), timeout = 30, source_address = None def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, source_address=None): """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. A host of '' or port 0 tells the OS to use the default. """ host, port = address err = None for res in getaddrinfo(host, port, 0, SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket(af, socktype, proto) if timeout is not _GLOBAL_DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address)
> sock.connect(sa)E ConnectionRefusedError: [Errno 111] Connection refused/usr/lib64/python3.10/socket.py:833: ConnectionRefusedError_______________________________ test_not_cached ________________________________ftp = ('localhost', 2121) def test_not_cached(ftp): host, port = ftp
> fs = FTPFileSystem(host, port)/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/tests/test_ftp.py:65:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/spec.py:81: in __call__ obj = super().__call__(*args, **kwargs)/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/ftp.py:75: in __init__ self._connect()/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/ftp.py:91: in _connect self.ftp.connect(self.host, self.port)/usr/lib64/python3.10/ftplib.py:158: in connect self.sock = socket.create_connection((self.host, self.port), self.timeout,/usr/lib64/python3.10/socket.py:845: in create_connection raise err_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _address = ('localhost', 2121), timeout = 30, source_address = None def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, source_address=None): """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. A host of '' or port 0 tells the OS to use the default. """ host, port = address err = None for res in getaddrinfo(host, port, 0, SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket(af, socktype, proto) if timeout is not _GLOBAL_DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address)
> sock.connect(sa)E ConnectionRefusedError: [Errno 111] Connection refused/usr/lib64/python3.10/socket.py:833: ConnectionRefusedError____________________________ test_ls_root_dircache _____________________________ftp = ('localhost', 2121) def test_ls_root_dircache(ftp): host, port = ftp
> fs = FTPFileSystem(host, port)/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/tests/test_ftp.py:72:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/spec.py:81: in __call__ obj = super().__call__(*args, **kwargs)/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/ftp.py:75: in __init__ self._connect()/home/tkloczko/rpmbuild/BUILD/filesystem_spec-2024.10.0/fsspec/implementations/ftp.py:91: in _connect self.ftp.connect(self.host, self.port)/usr/lib64/python3.10/ftplib.py:158: in connect self.sock = socket.create_connection((self.host, self.port), self.timeout,/usr/lib64/python3.10/socket.py:845: in create_connection raise err_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _address = ('localhost', 2121), timeout = 30, source_address = None def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, source_address=None): """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. A host of '' or port 0 tells the OS to use the default. """ host, port = address err = None for res in getaddrinfo(host, port, 0, SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket(af, socktype, proto) if timeout is not _GLOBAL_DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address)
> sock.connect(sa)E ConnectionRefusedError: [Errno 111] Connection refused/usr/lib64/python3.10/socket.py:833: ConnectionRefusedError================================== XFAILURES ===================================__________________________ test_multilevel_chained_fs __________________________ @pytest.mark.xfail(reason="see issue #334", strict=True) def test_multilevel_chained_fs(): """This test reproduces fsspec/filesystem_spec#334""" import zipfile d1 = tempfile.mkdtemp() f1 = os.path.join(d1, "f1.zip") with zipfile.ZipFile(f1, mode="w") as z: # filename, content z.writestr("foo.txt", "foo.txt") z.writestr("bar.txt", "bar.txt") # We expected this to be the correct syntax
> with pytest.raises(IsADirectoryError):E Failed: DID NOT RAISE <class 'IsADirectoryError'>fsspec/tests/test_api.py:252: Failed__________________________________ test_find ___________________________________ @pytest.mark.xfail def test_find(): """Test .find() method on debian server (ftp, https) with constant folder""" filesystem, host, test_path = ( FTPFileSystem, "ftp.fau.de", "ftp://ftp.fau.de/debian-cd/current/amd64/log/success", ) test_fs = filesystem(host) filenames_ftp = test_fs.find(test_path)
> assert filenames_ftpE assert []fsspec/tests/test_spec.py:699: AssertionError=============================== warnings summary ===============================fsspec/tests/test_async.py::test_run_coros_in_chunks /usr/lib64/python3.10/asyncio/tasks.py:596: RuntimeWarning: coroutine 'test_run_coros_in_chunks.<locals>.runner' was never awaited await __sleep0() Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.fsspec/tests/test_async.py::test_async_streamed_file_write /usr/lib64/python3.10/functools.py:58: RuntimeWarning: coroutine 'test_run_coros_in_chunks.<locals>.runner' was never awaited getattr(wrapper, attr).update(getattr(wrapped, attr, {})) Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html=========================== short test summary info ============================SKIPPED [1] fsspec/implementations/tests/test_arrow.py:5: could not import 'pyarrow.fs': No module named 'pyarrow'SKIPPED [1] fsspec/implementations/tests/test_dask.py:5: could not import 'distributed': No module named 'distributed'SKIPPED [1] fsspec/implementations/tests/test_dbfs.py:35: These tests need to be re-recorded.SKIPPED [1] fsspec/implementations/tests/test_git.py:11: could not import 'pygit2': No module named 'pygit2'SKIPPED [1] fsspec/implementations/tests/test_jupyter.py:10: could not import 'notebook': No module named 'notebook'SKIPPED [1] fsspec/implementations/tests/test_smb.py:15: could not import 'smbprotocol': No module named 'smbprotocol'SKIPPED [1] fsspec/tests/test_downstream.py:3: could not import 's3fs': No module named 's3fs'SKIPPED [1] fsspec/tests/test_fuse.py:9: could not import 'fuse': No module named 'fuse'SKIPPED [1] fsspec/tests/test_gui.py:3: could not import 'panel': No module named 'panel'SKIPPED [18] fsspec/implementations/tests/test_archive.py:45: could not import 'libarchive': No module named 'libarchive'SKIPPED [6] fsspec/implementations/tests/test_cached.py:878: could not import 'pyarrow.fs': No module named 'pyarrow'SKIPPED [6] fsspec/implementations/tests/test_cached.py:892: could not import 'pyarrow.fs': No module named 'pyarrow'SKIPPED [1] fsspec/implementations/tests/test_common.py:10: could not import 'pyarrow.fs': No module named 'pyarrow'SKIPPED [3] fsspec/implementations/tests/test_common.py:21: could not import 'pyarrow.fs': No module named 'pyarrow'SKIPPED [1] fsspec/implementations/tests/test_local.py:135: could not import 's3fs': No module named 's3fs'SKIPPED [1] fsspec/implementations/tests/test_local.py:287: could not import 'cloudpickle': No module named 'cloudpickle'SKIPPED [2] fsspec/implementations/tests/test_local.py:785: Windows onlySKIPPED [2] fsspec/implementations/tests/test_local.py:801: Windows onlySKIPPED [5] fsspec/implementations/tests/test_local.py:823: Windows onlySKIPPED [3] fsspec/implementations/tests/test_local.py:880: Windows onlySKIPPED [1] fsspec/implementations/tests/test_local.py:895: Windows onlySKIPPED [1] fsspec/implementations/tests/test_reference.py:433: could not import 'zarr': No module named 'zarr'SKIPPED [1] fsspec/implementations/tests/test_reference.py:579: could not import 'fastparquet': No module named 'fastparquet'SKIPPED [1] fsspec/implementations/tests/test_reference.py:625: could not import 'fastparquet': No module named 'fastparquet'SKIPPED [1] fsspec/implementations/tests/test_reference.py:733: could not import 'zarr': No module named 'zarr'SKIPPED [2] fsspec/implementations/tests/test_reference.py:766: could not import 'kerchunk': No module named 'kerchunk'SKIPPED [1] fsspec/implementations/tests/test_sftp.py:71: docker run not availableSKIPPED [2] fsspec/implementations/tests/test_sftp.py:86: docker run not availableSKIPPED [2] fsspec/implementations/tests/test_sftp.py:104: docker run not availableSKIPPED [1] fsspec/implementations/tests/test_sftp.py:143: docker run not availableSKIPPED [1] fsspec/implementations/tests/test_sftp.py:152: docker run not availableSKIPPED [1] fsspec/implementations/tests/test_sftp.py:183: docker run not availableSKIPPED [2] fsspec/implementations/tests/test_sftp.py:205: docker run not availableSKIPPED [2] fsspec/implementations/tests/test_sftp.py:222: docker run not availableSKIPPED [1] fsspec/implementations/tests/test_webhdfs.py:43: htcluster not foundSKIPPED [1] fsspec/implementations/tests/test_webhdfs.py:49: htcluster not foundSKIPPED [1] fsspec/implementations/tests/test_webhdfs.py:57: htcluster not foundSKIPPED [1] fsspec/implementations/tests/test_webhdfs.py:67: htcluster not foundSKIPPED [1] fsspec/implementations/tests/test_webhdfs.py:84: htcluster not foundSKIPPED [1] fsspec/implementations/tests/test_webhdfs.py:100: htcluster not foundSKIPPED [1] fsspec/implementations/tests/test_webhdfs.py:121: htcluster not foundSKIPPED [1] fsspec/implementations/tests/test_webhdfs.py:140: htcluster not foundSKIPPED [1] fsspec/implementations/tests/test_webhdfs.py:153: htcluster not foundSKIPPED [1] fsspec/implementations/tests/test_webhdfs.py:163: htcluster not foundSKIPPED [1] fsspec/implementations/tests/test_webhdfs.py:177: htcluster not foundSKIPPED [1] fsspec/tests/test_async.py:134: only for windowsSKIPPED [1] fsspec/tests/test_compression.py:134: could not import 'snappy': No module named 'snappy'SKIPPED [1] fsspec/tests/test_core.py:357: could not import 's3fs': No module named 's3fs'SKIPPED [1] fsspec/tests/test_core.py:471: could not import 'adlfs': No module named 'adlfs'SKIPPED [64] fsspec/tests/test_parquet.py:37: fastparquet not foundSKIPPED [64] fsspec/tests/test_parquet.py:37: pyarrow not foundSKIPPED [64] fsspec/tests/test_parquet.py:37: No parquet engine (fastparquet or pyarrow) foundSKIPPED [1] fsspec/tests/test_registry.py:129: could not import 's3fs': No module named 's3fs'XFAIL fsspec/tests/test_api.py::test_multilevel_chained_fs - see issue #334XFAIL fsspec/tests/test_spec.py::test_findFAILED fsspec/implementations/tests/test_ftp.py::test_tls[False-FTP] - Connec...FAILED fsspec/implementations/tests/test_ftp.py::test_tls[True-FTP_TLS] - Con...FAILED fsspec/implementations/tests/test_ftp.py::test_basic[False--] - Connec...FAILED fsspec/implementations/tests/test_ftp.py::test_basic[True--] - Connect...FAILED fsspec/implementations/tests/test_ftp.py::test_basic[False-user-pass]FAILED fsspec/implementations/tests/test_ftp.py::test_basic[True-user-pass]FAILED fsspec/implementations/tests/test_ftp.py::test_not_cached - Connection...FAILED fsspec/implementations/tests/test_ftp.py::test_ls_root_dircache - Conn...= 8 failed, 1452 passed, 284 skipped, 2 xfailed, 2 warnings in 103.85s (0:01:43) =/usr/lib/python3.10/site-packages/_pytest/pathlib.py:98: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-970f0ce1-2bfe-4e93-9c9c-e0210285fe29/test_discovery_via_path_in_non0<class 'OSError'>: [Errno 39] Directory not empty: 'test_discovery_via_path_in_non0' warnings.warn(/usr/lib/python3.10/site-packages/_pytest/pathlib.py:98: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-970f0ce1-2bfe-4e93-9c9c-e0210285fe29<class 'OSError'>: [Errno 39] Directory not empty: '/tmp/pytest-of-tkloczko/garbage-970f0ce1-2bfe-4e93-9c9c-e0210285fe29' warnings.warn(/usr/lib/python3.10/site-packages/_pytest/pathlib.py:98: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-eec6b57a-4bc2-40fa-8c57-7bef6d50de7c/test_discovery_via_path_in_non0<class 'OSError'>: [Errno 39] Directory not empty: 'test_discovery_via_path_in_non0' warnings.warn(/usr/lib/python3.10/site-packages/_pytest/pathlib.py:98: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-eec6b57a-4bc2-40fa-8c57-7bef6d50de7c<class 'OSError'>: [Errno 39] Directory not empty: '/tmp/pytest-of-tkloczko/garbage-eec6b57a-4bc2-40fa-8c57-7bef6d50de7c' warnings.warn(Unclosed client sessionclient_session: <aiohttp.client.ClientSession object at 0x7ff14ad77ee0>
I don't see any of use network' pytest mark to skip some units so that module should not be affected by this. not notwork` should skip anything which requires more than localhost access.
In this case looks like failing units uses access to localhost but nothing is listening.
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulesinstaller
modulecut off from access to the public network
(pytest is executed with-m "not network"
)Here is pytest output:
List of installed modules in build env:
Please let me know if you need more details or want me to perform some diagnostics.
The text was updated successfully, but these errors were encountered: