Source: python-aiosmtpd Version: 1.4.2-4 Severity: serious Justification: FTBFS Tags: bookworm sid ftbfs User: lu...@debian.org Usertags: ftbfs-20221220 ftbfs-bookworm
Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > debian/rules binary > dh binary --with python3,sphinxdoc --buildsystem=pybuild > dh_update_autotools_config -O--buildsystem=pybuild > dh_autoreconf -O--buildsystem=pybuild > dh_auto_configure -O--buildsystem=pybuild > pybuild --configure -i python{version} -p "3.11 3.10" > dh_auto_build -O--buildsystem=pybuild > pybuild --build -i python{version} -p "3.11 3.10" > I: pybuild plugin_pyproject:107: Building wheel for python3.11 with "build" > module > I: pybuild base:240: python3.11 -m build --skip-dependency-check > --no-isolation --wheel --outdir > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd > running bdist_wheel > running build > running build_py > creating build > creating build/lib > creating build/lib/aiosmtpd > copying aiosmtpd/__init__.py -> build/lib/aiosmtpd > copying aiosmtpd/lmtp.py -> build/lib/aiosmtpd > copying aiosmtpd/__main__.py -> build/lib/aiosmtpd > copying aiosmtpd/proxy_protocol.py -> build/lib/aiosmtpd > copying aiosmtpd/controller.py -> build/lib/aiosmtpd > copying aiosmtpd/smtp.py -> build/lib/aiosmtpd > copying aiosmtpd/handlers.py -> build/lib/aiosmtpd > copying aiosmtpd/main.py -> build/lib/aiosmtpd > creating build/lib/aiosmtpd/qa > copying aiosmtpd/qa/__init__.py -> build/lib/aiosmtpd/qa > copying aiosmtpd/qa/test_0packaging.py -> build/lib/aiosmtpd/qa > copying aiosmtpd/qa/test_1testsuite.py -> build/lib/aiosmtpd/qa > creating build/lib/aiosmtpd/docs > copying aiosmtpd/docs/__init__.py -> build/lib/aiosmtpd/docs > copying aiosmtpd/docs/conf.py -> build/lib/aiosmtpd/docs > creating build/lib/aiosmtpd/testing > copying aiosmtpd/testing/__init__.py -> build/lib/aiosmtpd/testing > copying aiosmtpd/testing/statuscodes.py -> build/lib/aiosmtpd/testing > copying aiosmtpd/testing/helpers.py -> build/lib/aiosmtpd/testing > creating build/lib/aiosmtpd/tests > copying aiosmtpd/tests/test_starttls.py -> build/lib/aiosmtpd/tests > copying aiosmtpd/tests/__init__.py -> build/lib/aiosmtpd/tests > copying aiosmtpd/tests/test_smtps.py -> build/lib/aiosmtpd/tests > copying aiosmtpd/tests/test_handlers.py -> build/lib/aiosmtpd/tests > copying aiosmtpd/tests/test_main.py -> build/lib/aiosmtpd/tests > copying aiosmtpd/tests/test_lmtp.py -> build/lib/aiosmtpd/tests > copying aiosmtpd/tests/conftest.py -> build/lib/aiosmtpd/tests > copying aiosmtpd/tests/test_smtp.py -> build/lib/aiosmtpd/tests > copying aiosmtpd/tests/test_proxyprotocol.py -> build/lib/aiosmtpd/tests > copying aiosmtpd/tests/test_server.py -> build/lib/aiosmtpd/tests > creating build/lib/aiosmtpd/tests/certs > copying aiosmtpd/tests/certs/__init__.py -> build/lib/aiosmtpd/tests/certs > running egg_info > creating aiosmtpd.egg-info > writing aiosmtpd.egg-info/PKG-INFO > writing dependency_links to aiosmtpd.egg-info/dependency_links.txt > writing entry points to aiosmtpd.egg-info/entry_points.txt > writing requirements to aiosmtpd.egg-info/requires.txt > writing top-level names to aiosmtpd.egg-info/top_level.txt > writing manifest file 'aiosmtpd.egg-info/SOURCES.txt' > reading manifest file 'aiosmtpd.egg-info/SOURCES.txt' > reading manifest template 'MANIFEST.in' > warning: no previously-included files matching '*.py[oc]' found anywhere in > distribution > adding license file 'LICENSE' > adding license file 'NOTICE' > writing manifest file 'aiosmtpd.egg-info/SOURCES.txt' > /usr/lib/python3/dist-packages/setuptools/command/build_py.py:202: > SetuptoolsDeprecationWarning: Installing 'aiosmtpd.docs._exts' as data is > deprecated, please list it in `packages`. > !! > > > ############################ > # Package would be ignored # > ############################ > Python recognizes 'aiosmtpd.docs._exts' as an importable package, > but it is not listed in the `packages` configuration of setuptools. > > 'aiosmtpd.docs._exts' has been automatically added to the distribution > only > because it may contain data files, but this behavior is likely to change > in future versions of setuptools (and therefore is considered deprecated). > > Please make sure that 'aiosmtpd.docs._exts' is included as a package by > using > the `packages` configuration field or the proper discovery methods > (for example by using `find_namespace_packages(...)`/`find_namespace:` > instead of `find_packages(...)`/`find:`). > > You can read more about "package discovery" and "data files" on setuptools > documentation page. > > > !! > > check.warn(importable) > /usr/lib/python3/dist-packages/setuptools/command/build_py.py:202: > SetuptoolsDeprecationWarning: Installing 'aiosmtpd.docs._static' as data > is deprecated, please list it in `packages`. > !! > > > ############################ > # Package would be ignored # > ############################ > Python recognizes 'aiosmtpd.docs._static' as an importable package, > but it is not listed in the `packages` configuration of setuptools. > > 'aiosmtpd.docs._static' has been automatically added to the distribution > only > because it may contain data files, but this behavior is likely to change > in future versions of setuptools (and therefore is considered deprecated). > > Please make sure that 'aiosmtpd.docs._static' is included as a package by > using > the `packages` configuration field or the proper discovery methods > (for example by using `find_namespace_packages(...)`/`find_namespace:` > instead of `find_packages(...)`/`find:`). > > You can read more about "package discovery" and "data files" on setuptools > documentation page. > > > !! > > check.warn(importable) > copying aiosmtpd/py.typed -> build/lib/aiosmtpd > copying aiosmtpd/docs/.gitignore -> build/lib/aiosmtpd/docs > copying aiosmtpd/docs/Makefile -> build/lib/aiosmtpd/docs > copying aiosmtpd/docs/NEWS.rst -> build/lib/aiosmtpd/docs > copying aiosmtpd/docs/RTD-requirements.txt -> build/lib/aiosmtpd/docs > copying aiosmtpd/docs/auth.rst -> build/lib/aiosmtpd/docs > copying aiosmtpd/docs/cli.rst -> build/lib/aiosmtpd/docs > copying aiosmtpd/docs/concepts.rst -> build/lib/aiosmtpd/docs > copying aiosmtpd/docs/controller.rst -> build/lib/aiosmtpd/docs > copying aiosmtpd/docs/handlers.rst -> build/lib/aiosmtpd/docs > copying aiosmtpd/docs/index.rst -> build/lib/aiosmtpd/docs > copying aiosmtpd/docs/intro.rst -> build/lib/aiosmtpd/docs > copying aiosmtpd/docs/lmtp.rst -> build/lib/aiosmtpd/docs > copying aiosmtpd/docs/manpage.rst -> build/lib/aiosmtpd/docs > copying aiosmtpd/docs/migrating.rst -> build/lib/aiosmtpd/docs > copying aiosmtpd/docs/proxyprotocol.rst -> build/lib/aiosmtpd/docs > copying aiosmtpd/docs/smtp.rst -> build/lib/aiosmtpd/docs > copying aiosmtpd/docs/testing.rst -> build/lib/aiosmtpd/docs > creating build/lib/aiosmtpd/docs/_exts > copying aiosmtpd/docs/_exts/autoprogramm.py -> build/lib/aiosmtpd/docs/_exts > creating build/lib/aiosmtpd/docs/_static > copying aiosmtpd/docs/_static/aiosmtpd.css -> build/lib/aiosmtpd/docs/_static > copying aiosmtpd/tests/certs/server.crt -> build/lib/aiosmtpd/tests/certs > copying aiosmtpd/tests/certs/server.key -> build/lib/aiosmtpd/tests/certs > copying aiosmtpd/tests/certs/server_alt.crt -> build/lib/aiosmtpd/tests/certs > copying aiosmtpd/tests/certs/server_alt.key -> build/lib/aiosmtpd/tests/certs > installing to build/bdist.linux-x86_64/wheel > running install > running install_lib > creating build/bdist.linux-x86_64 > creating build/bdist.linux-x86_64/wheel > creating build/bdist.linux-x86_64/wheel/aiosmtpd > copying build/lib/aiosmtpd/__init__.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd > copying build/lib/aiosmtpd/lmtp.py -> build/bdist.linux-x86_64/wheel/aiosmtpd > creating build/bdist.linux-x86_64/wheel/aiosmtpd/qa > copying build/lib/aiosmtpd/qa/__init__.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/qa > copying build/lib/aiosmtpd/qa/test_0packaging.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/qa > copying build/lib/aiosmtpd/qa/test_1testsuite.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/qa > copying build/lib/aiosmtpd/__main__.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd > copying build/lib/aiosmtpd/py.typed -> build/bdist.linux-x86_64/wheel/aiosmtpd > copying build/lib/aiosmtpd/proxy_protocol.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd > copying build/lib/aiosmtpd/controller.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd > copying build/lib/aiosmtpd/smtp.py -> build/bdist.linux-x86_64/wheel/aiosmtpd > creating build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/__init__.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/proxyprotocol.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/lmtp.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/Makefile -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/concepts.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/NEWS.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/cli.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/controller.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/RTD-requirements.txt -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > creating build/bdist.linux-x86_64/wheel/aiosmtpd/docs/_static > copying build/lib/aiosmtpd/docs/_static/aiosmtpd.css -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs/_static > copying build/lib/aiosmtpd/docs/smtp.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/manpage.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > creating build/bdist.linux-x86_64/wheel/aiosmtpd/docs/_exts > copying build/lib/aiosmtpd/docs/_exts/autoprogramm.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs/_exts > copying build/lib/aiosmtpd/docs/auth.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/migrating.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/testing.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/index.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/handlers.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/.gitignore -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/conf.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/intro.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > creating build/bdist.linux-x86_64/wheel/aiosmtpd/testing > copying build/lib/aiosmtpd/testing/__init__.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/testing > copying build/lib/aiosmtpd/testing/statuscodes.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/testing > copying build/lib/aiosmtpd/testing/helpers.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/testing > copying build/lib/aiosmtpd/handlers.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd > copying build/lib/aiosmtpd/main.py -> build/bdist.linux-x86_64/wheel/aiosmtpd > creating build/bdist.linux-x86_64/wheel/aiosmtpd/tests > copying build/lib/aiosmtpd/tests/test_starttls.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests > copying build/lib/aiosmtpd/tests/__init__.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests > copying build/lib/aiosmtpd/tests/test_smtps.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests > copying build/lib/aiosmtpd/tests/test_handlers.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests > copying build/lib/aiosmtpd/tests/test_main.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests > copying build/lib/aiosmtpd/tests/test_lmtp.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests > copying build/lib/aiosmtpd/tests/conftest.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests > copying build/lib/aiosmtpd/tests/test_smtp.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests > copying build/lib/aiosmtpd/tests/test_proxyprotocol.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests > creating build/bdist.linux-x86_64/wheel/aiosmtpd/tests/certs > copying build/lib/aiosmtpd/tests/certs/__init__.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests/certs > copying build/lib/aiosmtpd/tests/certs/server.crt -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests/certs > copying build/lib/aiosmtpd/tests/certs/server_alt.crt -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests/certs > copying build/lib/aiosmtpd/tests/certs/server_alt.key -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests/certs > copying build/lib/aiosmtpd/tests/certs/server.key -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests/certs > copying build/lib/aiosmtpd/tests/test_server.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests > running install_egg_info > Copying aiosmtpd.egg-info to > build/bdist.linux-x86_64/wheel/aiosmtpd-1.4.2.egg-info > running install_scripts > creating build/bdist.linux-x86_64/wheel/aiosmtpd-1.4.2.dist-info/WHEEL > creating > '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/tmpbxb4b8hr/aiosmtpd-1.4.2-py3-none-any.whl' > and adding 'build/bdist.linux-x86_64/wheel' to it > adding 'aiosmtpd/__init__.py' > adding 'aiosmtpd/__main__.py' > adding 'aiosmtpd/controller.py' > adding 'aiosmtpd/handlers.py' > adding 'aiosmtpd/lmtp.py' > adding 'aiosmtpd/main.py' > adding 'aiosmtpd/proxy_protocol.py' > adding 'aiosmtpd/py.typed' > adding 'aiosmtpd/smtp.py' > adding 'aiosmtpd/docs/.gitignore' > adding 'aiosmtpd/docs/Makefile' > adding 'aiosmtpd/docs/NEWS.rst' > adding 'aiosmtpd/docs/RTD-requirements.txt' > adding 'aiosmtpd/docs/__init__.py' > adding 'aiosmtpd/docs/auth.rst' > adding 'aiosmtpd/docs/cli.rst' > adding 'aiosmtpd/docs/concepts.rst' > adding 'aiosmtpd/docs/conf.py' > adding 'aiosmtpd/docs/controller.rst' > adding 'aiosmtpd/docs/handlers.rst' > adding 'aiosmtpd/docs/index.rst' > adding 'aiosmtpd/docs/intro.rst' > adding 'aiosmtpd/docs/lmtp.rst' > adding 'aiosmtpd/docs/manpage.rst' > adding 'aiosmtpd/docs/migrating.rst' > adding 'aiosmtpd/docs/proxyprotocol.rst' > adding 'aiosmtpd/docs/smtp.rst' > adding 'aiosmtpd/docs/testing.rst' > adding 'aiosmtpd/docs/_exts/autoprogramm.py' > adding 'aiosmtpd/docs/_static/aiosmtpd.css' > adding 'aiosmtpd/qa/__init__.py' > adding 'aiosmtpd/qa/test_0packaging.py' > adding 'aiosmtpd/qa/test_1testsuite.py' > adding 'aiosmtpd/testing/__init__.py' > adding 'aiosmtpd/testing/helpers.py' > adding 'aiosmtpd/testing/statuscodes.py' > adding 'aiosmtpd/tests/__init__.py' > adding 'aiosmtpd/tests/conftest.py' > adding 'aiosmtpd/tests/test_handlers.py' > adding 'aiosmtpd/tests/test_lmtp.py' > adding 'aiosmtpd/tests/test_main.py' > adding 'aiosmtpd/tests/test_proxyprotocol.py' > adding 'aiosmtpd/tests/test_server.py' > adding 'aiosmtpd/tests/test_smtp.py' > adding 'aiosmtpd/tests/test_smtps.py' > adding 'aiosmtpd/tests/test_starttls.py' > adding 'aiosmtpd/tests/certs/__init__.py' > adding 'aiosmtpd/tests/certs/server.crt' > adding 'aiosmtpd/tests/certs/server.key' > adding 'aiosmtpd/tests/certs/server_alt.crt' > adding 'aiosmtpd/tests/certs/server_alt.key' > adding 'aiosmtpd-1.4.2.dist-info/LICENSE' > adding 'aiosmtpd-1.4.2.dist-info/METADATA' > adding 'aiosmtpd-1.4.2.dist-info/NOTICE' > adding 'aiosmtpd-1.4.2.dist-info/WHEEL' > adding 'aiosmtpd-1.4.2.dist-info/entry_points.txt' > adding 'aiosmtpd-1.4.2.dist-info/top_level.txt' > adding 'aiosmtpd-1.4.2.dist-info/RECORD' > removing build/bdist.linux-x86_64/wheel > * Building wheel... > Successfully built aiosmtpd-1.4.2-py3-none-any.whl > I: pybuild plugin_pyproject:118: Unpacking wheel built for python3.11 with > "installer" module > I: pybuild plugin_pyproject:107: Building wheel for python3.10 with "build" > module > I: pybuild base:240: python3.10 -m build --skip-dependency-check > --no-isolation --wheel --outdir > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aiosmtpd > running bdist_wheel > running build > running build_py > running egg_info > writing aiosmtpd.egg-info/PKG-INFO > writing dependency_links to aiosmtpd.egg-info/dependency_links.txt > writing entry points to aiosmtpd.egg-info/entry_points.txt > writing requirements to aiosmtpd.egg-info/requires.txt > writing top-level names to aiosmtpd.egg-info/top_level.txt > reading manifest file 'aiosmtpd.egg-info/SOURCES.txt' > reading manifest template 'MANIFEST.in' > warning: no previously-included files matching '*.py[oc]' found anywhere in > distribution > adding license file 'LICENSE' > adding license file 'NOTICE' > writing manifest file 'aiosmtpd.egg-info/SOURCES.txt' > /usr/lib/python3/dist-packages/setuptools/command/build_py.py:202: > SetuptoolsDeprecationWarning: Installing 'aiosmtpd.docs._exts' as data is > deprecated, please list it in `packages`. > !! > > > ############################ > # Package would be ignored # > ############################ > Python recognizes 'aiosmtpd.docs._exts' as an importable package, > but it is not listed in the `packages` configuration of setuptools. > > 'aiosmtpd.docs._exts' has been automatically added to the distribution > only > because it may contain data files, but this behavior is likely to change > in future versions of setuptools (and therefore is considered deprecated). > > Please make sure that 'aiosmtpd.docs._exts' is included as a package by > using > the `packages` configuration field or the proper discovery methods > (for example by using `find_namespace_packages(...)`/`find_namespace:` > instead of `find_packages(...)`/`find:`). > > You can read more about "package discovery" and "data files" on setuptools > documentation page. > > > !! > > check.warn(importable) > /usr/lib/python3/dist-packages/setuptools/command/build_py.py:202: > SetuptoolsDeprecationWarning: Installing 'aiosmtpd.docs._static' as data > is deprecated, please list it in `packages`. > !! > > > ############################ > # Package would be ignored # > ############################ > Python recognizes 'aiosmtpd.docs._static' as an importable package, > but it is not listed in the `packages` configuration of setuptools. > > 'aiosmtpd.docs._static' has been automatically added to the distribution > only > because it may contain data files, but this behavior is likely to change > in future versions of setuptools (and therefore is considered deprecated). > > Please make sure that 'aiosmtpd.docs._static' is included as a package by > using > the `packages` configuration field or the proper discovery methods > (for example by using `find_namespace_packages(...)`/`find_namespace:` > instead of `find_packages(...)`/`find:`). > > You can read more about "package discovery" and "data files" on setuptools > documentation page. > > > !! > > check.warn(importable) > installing to build/bdist.linux-x86_64/wheel > running install > running install_lib > creating build/bdist.linux-x86_64/wheel > creating build/bdist.linux-x86_64/wheel/aiosmtpd > copying build/lib/aiosmtpd/__init__.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd > copying build/lib/aiosmtpd/lmtp.py -> build/bdist.linux-x86_64/wheel/aiosmtpd > creating build/bdist.linux-x86_64/wheel/aiosmtpd/qa > copying build/lib/aiosmtpd/qa/__init__.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/qa > copying build/lib/aiosmtpd/qa/test_0packaging.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/qa > copying build/lib/aiosmtpd/qa/test_1testsuite.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/qa > copying build/lib/aiosmtpd/__main__.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd > copying build/lib/aiosmtpd/py.typed -> build/bdist.linux-x86_64/wheel/aiosmtpd > copying build/lib/aiosmtpd/proxy_protocol.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd > copying build/lib/aiosmtpd/controller.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd > copying build/lib/aiosmtpd/smtp.py -> build/bdist.linux-x86_64/wheel/aiosmtpd > creating build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/__init__.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/proxyprotocol.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/lmtp.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/Makefile -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/concepts.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/NEWS.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/cli.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/controller.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/RTD-requirements.txt -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > creating build/bdist.linux-x86_64/wheel/aiosmtpd/docs/_static > copying build/lib/aiosmtpd/docs/_static/aiosmtpd.css -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs/_static > copying build/lib/aiosmtpd/docs/smtp.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/manpage.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > creating build/bdist.linux-x86_64/wheel/aiosmtpd/docs/_exts > copying build/lib/aiosmtpd/docs/_exts/autoprogramm.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs/_exts > copying build/lib/aiosmtpd/docs/auth.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/migrating.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/testing.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/index.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/handlers.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/.gitignore -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/conf.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > copying build/lib/aiosmtpd/docs/intro.rst -> > build/bdist.linux-x86_64/wheel/aiosmtpd/docs > creating build/bdist.linux-x86_64/wheel/aiosmtpd/testing > copying build/lib/aiosmtpd/testing/__init__.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/testing > copying build/lib/aiosmtpd/testing/statuscodes.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/testing > copying build/lib/aiosmtpd/testing/helpers.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/testing > copying build/lib/aiosmtpd/handlers.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd > copying build/lib/aiosmtpd/main.py -> build/bdist.linux-x86_64/wheel/aiosmtpd > creating build/bdist.linux-x86_64/wheel/aiosmtpd/tests > copying build/lib/aiosmtpd/tests/test_starttls.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests > copying build/lib/aiosmtpd/tests/__init__.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests > copying build/lib/aiosmtpd/tests/test_smtps.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests > copying build/lib/aiosmtpd/tests/test_handlers.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests > copying build/lib/aiosmtpd/tests/test_main.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests > copying build/lib/aiosmtpd/tests/test_lmtp.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests > copying build/lib/aiosmtpd/tests/conftest.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests > copying build/lib/aiosmtpd/tests/test_smtp.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests > copying build/lib/aiosmtpd/tests/test_proxyprotocol.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests > creating build/bdist.linux-x86_64/wheel/aiosmtpd/tests/certs > copying build/lib/aiosmtpd/tests/certs/__init__.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests/certs > copying build/lib/aiosmtpd/tests/certs/server.crt -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests/certs > copying build/lib/aiosmtpd/tests/certs/server_alt.crt -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests/certs > copying build/lib/aiosmtpd/tests/certs/server_alt.key -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests/certs > copying build/lib/aiosmtpd/tests/certs/server.key -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests/certs > copying build/lib/aiosmtpd/tests/test_server.py -> > build/bdist.linux-x86_64/wheel/aiosmtpd/tests > running install_egg_info > Copying aiosmtpd.egg-info to > build/bdist.linux-x86_64/wheel/aiosmtpd-1.4.2.egg-info > running install_scripts > creating build/bdist.linux-x86_64/wheel/aiosmtpd-1.4.2.dist-info/WHEEL > creating > '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aiosmtpd/tmpe226ddg8/aiosmtpd-1.4.2-py3-none-any.whl' > and adding 'build/bdist.linux-x86_64/wheel' to it > adding 'aiosmtpd/__init__.py' > adding 'aiosmtpd/__main__.py' > adding 'aiosmtpd/controller.py' > adding 'aiosmtpd/handlers.py' > adding 'aiosmtpd/lmtp.py' > adding 'aiosmtpd/main.py' > adding 'aiosmtpd/proxy_protocol.py' > adding 'aiosmtpd/py.typed' > adding 'aiosmtpd/smtp.py' > adding 'aiosmtpd/docs/.gitignore' > adding 'aiosmtpd/docs/Makefile' > adding 'aiosmtpd/docs/NEWS.rst' > adding 'aiosmtpd/docs/RTD-requirements.txt' > adding 'aiosmtpd/docs/__init__.py' > adding 'aiosmtpd/docs/auth.rst' > adding 'aiosmtpd/docs/cli.rst' > adding 'aiosmtpd/docs/concepts.rst' > adding 'aiosmtpd/docs/conf.py' > adding 'aiosmtpd/docs/controller.rst' > adding 'aiosmtpd/docs/handlers.rst' > adding 'aiosmtpd/docs/index.rst' > adding 'aiosmtpd/docs/intro.rst' > adding 'aiosmtpd/docs/lmtp.rst' > adding 'aiosmtpd/docs/manpage.rst' > adding 'aiosmtpd/docs/migrating.rst' > adding 'aiosmtpd/docs/proxyprotocol.rst' > adding 'aiosmtpd/docs/smtp.rst' > adding 'aiosmtpd/docs/testing.rst' > adding 'aiosmtpd/docs/_exts/autoprogramm.py' > adding 'aiosmtpd/docs/_static/aiosmtpd.css' > adding 'aiosmtpd/qa/__init__.py' > adding 'aiosmtpd/qa/test_0packaging.py' > adding 'aiosmtpd/qa/test_1testsuite.py' > adding 'aiosmtpd/testing/__init__.py' > adding 'aiosmtpd/testing/helpers.py' > adding 'aiosmtpd/testing/statuscodes.py' > adding 'aiosmtpd/tests/__init__.py' > adding 'aiosmtpd/tests/conftest.py' > adding 'aiosmtpd/tests/test_handlers.py' > adding 'aiosmtpd/tests/test_lmtp.py' > adding 'aiosmtpd/tests/test_main.py' > adding 'aiosmtpd/tests/test_proxyprotocol.py' > adding 'aiosmtpd/tests/test_server.py' > adding 'aiosmtpd/tests/test_smtp.py' > adding 'aiosmtpd/tests/test_smtps.py' > adding 'aiosmtpd/tests/test_starttls.py' > adding 'aiosmtpd/tests/certs/__init__.py' > adding 'aiosmtpd/tests/certs/server.crt' > adding 'aiosmtpd/tests/certs/server.key' > adding 'aiosmtpd/tests/certs/server_alt.crt' > adding 'aiosmtpd/tests/certs/server_alt.key' > adding 'aiosmtpd-1.4.2.dist-info/LICENSE' > adding 'aiosmtpd-1.4.2.dist-info/METADATA' > adding 'aiosmtpd-1.4.2.dist-info/NOTICE' > adding 'aiosmtpd-1.4.2.dist-info/WHEEL' > adding 'aiosmtpd-1.4.2.dist-info/entry_points.txt' > adding 'aiosmtpd-1.4.2.dist-info/top_level.txt' > adding 'aiosmtpd-1.4.2.dist-info/RECORD' > removing build/bdist.linux-x86_64/wheel > * Building wheel... > Successfully built aiosmtpd-1.4.2-py3-none-any.whl > I: pybuild plugin_pyproject:118: Unpacking wheel built for python3.10 with > "installer" module > dh_auto_test -O--buildsystem=pybuild > pybuild --test --test-pytest -i python{version} -p "3.11 3.10" > I: pybuild base:240: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build; python3.11 -m pytest > ============================= test session starts > ============================== > platform linux -- Python 3.11.1, pytest-7.2.0, pluggy-1.0.0+repack > rootdir: /<<PKGBUILDDIR>>, configfile: pyproject.toml > plugins: mock-3.8.2 > collected 552 items > > aiosmtpd/qa/test_0packaging.py .s. [ > 0%] > aiosmtpd/qa/test_1testsuite.py ..... [ > 1%] > aiosmtpd/tests/test_handlers.py ....................................... [ > 8%] > aiosmtpd/tests/test_lmtp.py .... [ > 9%] > aiosmtpd/tests/test_main.py ...................................... [ > 16%] > aiosmtpd/tests/test_proxyprotocol.py ................................... [ > 22%] > ........................................................................ [ > 35%] > ............. [ > 37%] > aiosmtpd/tests/test_server.py ................................. [ > 43%] > aiosmtpd/tests/test_smtp.py ............................................ [ > 51%] > ........................................................................ [ > 64%] > .......................................................FE.......XXXX.... [ > 77%] > .F....F........F.F...................................................... [ > 90%] > .......X............. [ > 94%] > aiosmtpd/tests/test_smtps.py . [ > 94%] > aiosmtpd/tests/test_starttls.py ...FFF....F.FFF..........F... > [100%] > > ==================================== ERRORS > ==================================== > _______ ERROR at teardown of TestSMTPAuth.test_auth_loginteract_warning > ________ > > request = <SubRequest 'client' for <Function test_auth_loginteract_warning>> > > @pytest.fixture > def client(request) -> Generator[SMTPClient, None, None]: > """ > Generic SMTP Client, > will connect to the ``host:port`` defined in ``Global.SrvAddr`` > unless overriden using :func:`client_data` marker. > """ > marker = request.node.get_closest_marker("client_data") > if marker: > markerdata = marker.kwargs or {} > else: > markerdata = {} > addrport = markerdata.get("connect_to", Global.SrvAddr) > > with SMTPClient(*addrport) as client: > > aiosmtpd/tests/conftest.py:285: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <smtplib.SMTP object at 0x7f3718fe42d0>, args = (None, None, None) > code = 235, message = b'2.7.0 Authentication successful' > > def __exit__(self, *args): > try: > code, message = self.docmd("QUIT") > if code != 221: > > raise SMTPResponseException(code, message) > E smtplib.SMTPResponseException: (235, b'2.7.0 Authentication > successful') > > /usr/lib/python3.11/smtplib.py:284: SMTPResponseException > ------------------------------ Captured log setup > ------------------------------ > INFO mail.log:smtp.py:392 Available AUTH mechanisms: DENYFALSE > DENYMISSING DONT LOGIN(builtin) NONE NULL PLAIN(builtin) WITH-DASH > WITH-MULTI-DASH WITH_UNDERSCORE > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60224) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60224) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60224) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > INFO mail.log:smtp.py:524 ('127.0.0.1', 60224) EOF received > INFO mail.log:smtp.py:726 ('127.0.0.1', 60224) Connection lost during > _handle_client() > INFO mail.log:smtp.py:392 Available AUTH mechanisms: DENYFALSE > DENYMISSING DONT LOGIN(builtin) NONE NULL PLAIN(builtin) WITH-DASH > WITH-MULTI-DASH WITH_UNDERSCORE > INFO mail.log:smtp.py:510 ('127.0.0.1', 60224) connection lost > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60226) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60226) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60226) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > ------------------------------ Captured log call > ------------------------------- > DEBUG mail.log:smtp.py:271 _handle_client readline: b'ehlo example.com\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60226) >> b'ehlo example.com' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60226) << > b'250-ip-10-84-234-254.eu-central-1.compute.internal' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60226) << b'250-SIZE 33554432' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60226) << b'250-SMTPUTF8' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60226) << b'250-AUTH DENYFALSE > DENYMISSING DONT LOGIN NONE NULL PLAIN WITH-DASH WITH-MULTI-DASH > WITH_UNDERSCORE' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60226) << b'250 HELP' > DEBUG mail.log:smtp.py:271 _handle_client readline: b'AUTH > WITH_UNDERSCORE\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60226) >> b'AUTH WITH_UNDERSCORE' > DEBUG mail.log:smtp.py:921 Using handler auth_ hook for 'WITH_UNDERSCORE' > DEBUG mail.log:smtp.py:991 ('127.0.0.1', 60226) << challenge: b'334 > challenge' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60226) << b'334 challenge' > DEBUG mail.log:smtp.py:997 ('127.0.0.1', 60226) >> b'=\r\n' > DEBUG mail.log:smtp.py:1007 ('127.0.0.1', 60226) can't decode base64: b'=' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60226) << b"501 5.5.2 Can't > decode base64" > DEBUG mail.log:smtp.py:929 auth_WITH_UNDERSCORE returned '250 OK' > WARNING mail.log:smtp.py:184 Session.login_data is deprecated and will be > removed in version 2.0 > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60226) << b'235 2.7.0 > Authentication successful' > ---------------------------- Captured log teardown > ----------------------------- > DEBUG mail.log:smtp.py:271 _handle_client readline: b'QUIT\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60226) >> b'QUIT' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60226) << b'221 Bye' > INFO mail.log:smtp.py:510 ('127.0.0.1', 60226) connection lost > INFO mail.log:smtp.py:726 ('127.0.0.1', 60226) Connection lost during > _handle_client() > =================================== FAILURES > =================================== > __________________ TestSMTPAuth.test_auth_loginteract_warning > __________________ > > self = <aiosmtpd.tests.test_smtp.TestSMTPAuth object at 0x7f3718da42d0> > client = <smtplib.SMTP object at 0x7f3718fe42d0> > > @handler_data(class_=PeekerHandler) > def test_auth_loginteract_warning(self, client): > client.ehlo("example.com") > resp = client.docmd("AUTH WITH_UNDERSCORE") > assert resp == (334, b"challenge") > with warnings.catch_warnings(record=True) as w: > > assert client.docmd("=") == S.S235_AUTH_SUCCESS > E assert (501, b"5.5.2...ecode base64") == StatusCode(co...n > successful') > E At index 0 diff: 501 != 235 > E Use -v to get more diff > > aiosmtpd/tests/test_smtp.py:978: AssertionError > ------------------------------ Captured log setup > ------------------------------ > INFO mail.log:smtp.py:392 Available AUTH mechanisms: DENYFALSE > DENYMISSING DONT LOGIN(builtin) NONE NULL PLAIN(builtin) WITH-DASH > WITH-MULTI-DASH WITH_UNDERSCORE > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60224) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60224) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60224) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > INFO mail.log:smtp.py:524 ('127.0.0.1', 60224) EOF received > INFO mail.log:smtp.py:726 ('127.0.0.1', 60224) Connection lost during > _handle_client() > INFO mail.log:smtp.py:392 Available AUTH mechanisms: DENYFALSE > DENYMISSING DONT LOGIN(builtin) NONE NULL PLAIN(builtin) WITH-DASH > WITH-MULTI-DASH WITH_UNDERSCORE > INFO mail.log:smtp.py:510 ('127.0.0.1', 60224) connection lost > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60226) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60226) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60226) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > ------------------------------ Captured log call > ------------------------------- > DEBUG mail.log:smtp.py:271 _handle_client readline: b'ehlo example.com\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60226) >> b'ehlo example.com' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60226) << > b'250-ip-10-84-234-254.eu-central-1.compute.internal' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60226) << b'250-SIZE 33554432' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60226) << b'250-SMTPUTF8' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60226) << b'250-AUTH DENYFALSE > DENYMISSING DONT LOGIN NONE NULL PLAIN WITH-DASH WITH-MULTI-DASH > WITH_UNDERSCORE' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60226) << b'250 HELP' > DEBUG mail.log:smtp.py:271 _handle_client readline: b'AUTH > WITH_UNDERSCORE\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60226) >> b'AUTH WITH_UNDERSCORE' > DEBUG mail.log:smtp.py:921 Using handler auth_ hook for 'WITH_UNDERSCORE' > DEBUG mail.log:smtp.py:991 ('127.0.0.1', 60226) << challenge: b'334 > challenge' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60226) << b'334 challenge' > DEBUG mail.log:smtp.py:997 ('127.0.0.1', 60226) >> b'=\r\n' > DEBUG mail.log:smtp.py:1007 ('127.0.0.1', 60226) can't decode base64: b'=' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60226) << b"501 5.5.2 Can't > decode base64" > DEBUG mail.log:smtp.py:929 auth_WITH_UNDERSCORE returned '250 OK' > WARNING mail.log:smtp.py:184 Session.login_data is deprecated and will be > removed in version 2.0 > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60226) << b'235 2.7.0 > Authentication successful' > _____________________ TestAuthMechanisms.test_plain1_empty > _____________________ > > self = <aiosmtpd.tests.test_smtp.TestAuthMechanisms object at 0x7f3718d92350> > do_auth_plain1 = <function TestAuthMechanisms.do_auth_plain1.<locals>.do at > 0x7f37190e8680> > > def test_plain1_empty(self, do_auth_plain1): > resp = do_auth_plain1("=") > > assert resp == S.S501_AUTH_CANTSPLIT > E assert (501, b"5.5.2...ecode base64") == StatusCode(co...t auth > value") > E At index 1 diff: b"5.5.2 Can't decode base64" != b"5.5.2 Can't > split auth value" > E Use -v to get more diff > > aiosmtpd/tests/test_smtp.py:1092: AssertionError > ------------------------------ Captured log setup > ------------------------------ > INFO mail.log:smtp.py:392 Available AUTH mechanisms: DENYFALSE > DENYMISSING LOGIN(builtin) NONE NULL PLAIN(builtin) WITH-DASH WITH-MULTI-DASH > WITH_UNDERSCORE > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60292) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60292) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60292) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > INFO mail.log:smtp.py:524 ('127.0.0.1', 60292) EOF received > INFO mail.log:smtp.py:392 Available AUTH mechanisms: DENYFALSE > DENYMISSING LOGIN(builtin) NONE NULL PLAIN(builtin) WITH-DASH WITH-MULTI-DASH > WITH_UNDERSCORE > INFO mail.log:smtp.py:726 ('127.0.0.1', 60292) Connection lost during > _handle_client() > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60294) > INFO mail.log:smtp.py:510 ('127.0.0.1', 60292) connection lost > INFO mail.log:smtp.py:584 ('127.0.0.1', 60294) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60294) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > DEBUG mail.log:smtp.py:271 _handle_client readline: b'ehlo example.com\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60294) >> b'ehlo example.com' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60294) << > b'250-ip-10-84-234-254.eu-central-1.compute.internal' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60294) << b'250-SIZE 33554432' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60294) << b'250-SMTPUTF8' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60294) << b'250-AUTH DENYFALSE > DENYMISSING LOGIN NONE NULL PLAIN WITH-DASH WITH-MULTI-DASH WITH_UNDERSCORE' > ------------------------------ Captured log call > ------------------------------- > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60294) << b'250 HELP' > DEBUG mail.log:smtp.py:271 _handle_client readline: b'AUTH PLAIN > ********\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60294) >> b'AUTH PLAIN ********' > DEBUG mail.log:smtp.py:921 Using builtin auth_ hook for 'PLAIN' > ---------------------------- Captured log teardown > ----------------------------- > DEBUG mail.log:smtp.py:271 _handle_client readline: b'QUIT\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60294) >> b'QUIT' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60294) << b'221 Bye' > INFO mail.log:smtp.py:510 ('127.0.0.1', 60294) connection lost > INFO mail.log:smtp.py:726 ('127.0.0.1', 60294) Connection lost during > _handle_client() > ________________ TestAuthMechanisms.test_plain2_no_credentials > _________________ > > self = <aiosmtpd.tests.test_smtp.TestAuthMechanisms object at 0x7f3718d85190> > client_auth_plain2 = <smtplib.SMTP object at 0x7f3718bd4450> > > def test_plain2_no_credentials(self, client_auth_plain2): > resp = client_auth_plain2.docmd("=") > > assert resp == S.S501_AUTH_CANTSPLIT > E assert (501, b"5.5.2...ecode base64") == StatusCode(co...t auth > value") > E At index 1 diff: b"5.5.2 Can't decode base64" != b"5.5.2 Can't > split auth value" > E Use -v to get more diff > > aiosmtpd/tests/test_smtp.py:1154: AssertionError > ------------------------------ Captured log setup > ------------------------------ > INFO mail.log:smtp.py:392 Available AUTH mechanisms: DENYFALSE > DENYMISSING LOGIN(builtin) NONE NULL PLAIN(builtin) WITH-DASH WITH-MULTI-DASH > WITH_UNDERSCORE > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60312) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60312) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60312) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > INFO mail.log:smtp.py:524 ('127.0.0.1', 60312) EOF received > INFO mail.log:smtp.py:726 ('127.0.0.1', 60312) Connection lost during > _handle_client() > INFO mail.log:smtp.py:392 Available AUTH mechanisms: DENYFALSE > DENYMISSING LOGIN(builtin) NONE NULL PLAIN(builtin) WITH-DASH WITH-MULTI-DASH > WITH_UNDERSCORE > INFO mail.log:smtp.py:510 ('127.0.0.1', 60312) connection lost > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60314) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60314) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60314) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > DEBUG mail.log:smtp.py:271 _handle_client readline: b'ehlo example.com\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60314) >> b'ehlo example.com' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60314) << > b'250-ip-10-84-234-254.eu-central-1.compute.internal' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60314) << b'250-SIZE 33554432' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60314) << b'250-SMTPUTF8' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60314) << b'250-AUTH DENYFALSE > DENYMISSING LOGIN NONE NULL PLAIN WITH-DASH WITH-MULTI-DASH WITH_UNDERSCORE' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60314) << b'250 HELP' > DEBUG mail.log:smtp.py:271 _handle_client readline: b'AUTH PLAIN\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60314) >> b'AUTH PLAIN' > DEBUG mail.log:smtp.py:921 Using builtin auth_ hook for 'PLAIN' > DEBUG mail.log:smtp.py:991 ('127.0.0.1', 60314) << challenge: b'334 ' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60314) << b'334 ' > ------------------------------ Captured log call > ------------------------------- > DEBUG mail.log:smtp.py:1007 ('127.0.0.1', 60314) can't decode base64: b'=' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60314) << b"501 5.5.2 Can't > decode base64" > DEBUG mail.log:smtp.py:929 auth_PLAIN returned AuthResult(success=False, > handled=True, message=None, auth_data=...) > ---------------------------- Captured log teardown > ----------------------------- > DEBUG mail.log:smtp.py:271 _handle_client readline: b'QUIT\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60314) >> b'QUIT' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60314) << b'221 Bye' > INFO mail.log:smtp.py:510 ('127.0.0.1', 60314) connection lost > INFO mail.log:smtp.py:726 ('127.0.0.1', 60314) Connection lost during > _handle_client() > _______________ TestAuthMechanisms.test_login3_empty_credentials > _______________ > > self = <aiosmtpd.tests.test_smtp.TestAuthMechanisms object at 0x7f3718d79f50> > do_auth_login3 = <function TestAuthMechanisms.do_auth_login3.<locals>.do at > 0x7f37190e8c20> > > def test_login3_empty_credentials(self, do_auth_login3): > resp = do_auth_login3("=") > > assert resp == S.S334_AUTH_PASSWORD > E assert (501, b"5.5.2...ecode base64") == > StatusCode(co...UGFzc3dvcmQA') > E At index 0 diff: 501 != 334 > E Use -v to get more diff > > aiosmtpd/tests/test_smtp.py:1223: AssertionError > ------------------------------ Captured log setup > ------------------------------ > INFO mail.log:smtp.py:392 Available AUTH mechanisms: DENYFALSE > DENYMISSING LOGIN(builtin) NONE NULL PLAIN(builtin) WITH-DASH WITH-MULTI-DASH > WITH_UNDERSCORE > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60348) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60348) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60348) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > INFO mail.log:smtp.py:524 ('127.0.0.1', 60348) EOF received > INFO mail.log:smtp.py:726 ('127.0.0.1', 60348) Connection lost during > _handle_client() > INFO mail.log:smtp.py:392 Available AUTH mechanisms: DENYFALSE > DENYMISSING LOGIN(builtin) NONE NULL PLAIN(builtin) WITH-DASH WITH-MULTI-DASH > WITH_UNDERSCORE > INFO mail.log:smtp.py:510 ('127.0.0.1', 60348) connection lost > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60350) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60350) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60350) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > DEBUG mail.log:smtp.py:271 _handle_client readline: b'ehlo example.com\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60350) >> b'ehlo example.com' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60350) << > b'250-ip-10-84-234-254.eu-central-1.compute.internal' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60350) << b'250-SIZE 33554432' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60350) << b'250-SMTPUTF8' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60350) << b'250-AUTH DENYFALSE > DENYMISSING LOGIN NONE NULL PLAIN WITH-DASH WITH-MULTI-DASH WITH_UNDERSCORE' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60350) << b'250 HELP' > DEBUG mail.log:smtp.py:271 _handle_client readline: b'AUTH LOGIN\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60350) >> b'AUTH LOGIN' > DEBUG mail.log:smtp.py:921 Using builtin auth_ hook for 'LOGIN' > DEBUG mail.log:smtp.py:991 ('127.0.0.1', 60350) << challenge: b'334 > VXNlciBOYW1lAA==' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60350) << b'334 VXNlciBOYW1lAA==' > ------------------------------ Captured log call > ------------------------------- > DEBUG mail.log:smtp.py:1007 ('127.0.0.1', 60350) can't decode base64: b'=' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60350) << b"501 5.5.2 Can't > decode base64" > DEBUG mail.log:smtp.py:929 auth_LOGIN returned AuthResult(success=False, > handled=True, message=None, auth_data=...) > ---------------------------- Captured log teardown > ----------------------------- > DEBUG mail.log:smtp.py:271 _handle_client readline: b'QUIT\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60350) >> b'QUIT' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60350) << b'221 Bye' > INFO mail.log:smtp.py:510 ('127.0.0.1', 60350) connection lost > INFO mail.log:smtp.py:726 ('127.0.0.1', 60350) Connection lost during > _handle_client() > ________________ TestAuthMechanisms.test_login3_abort_password > _________________ > > self = <aiosmtpd.tests.test_smtp.TestAuthMechanisms object at 0x7f3718d7a950> > do_auth_login3 = <function TestAuthMechanisms.do_auth_login3.<locals>.do at > 0x7f371901c540> > > def test_login3_abort_password(self, do_auth_login3): > resp = do_auth_login3("=") > > assert resp == S.S334_AUTH_PASSWORD > E assert (501, b"5.5.2...ecode base64") == > StatusCode(co...UGFzc3dvcmQA') > E At index 0 diff: 501 != 334 > E Use -v to get more diff > > aiosmtpd/tests/test_smtp.py:1233: AssertionError > ------------------------------ Captured log setup > ------------------------------ > INFO mail.log:smtp.py:392 Available AUTH mechanisms: DENYFALSE > DENYMISSING LOGIN(builtin) NONE NULL PLAIN(builtin) WITH-DASH WITH-MULTI-DASH > WITH_UNDERSCORE > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60356) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60356) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60356) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > INFO mail.log:smtp.py:524 ('127.0.0.1', 60356) EOF received > INFO mail.log:smtp.py:726 ('127.0.0.1', 60356) Connection lost during > _handle_client() > INFO mail.log:smtp.py:392 Available AUTH mechanisms: DENYFALSE > DENYMISSING LOGIN(builtin) NONE NULL PLAIN(builtin) WITH-DASH WITH-MULTI-DASH > WITH_UNDERSCORE > INFO mail.log:smtp.py:510 ('127.0.0.1', 60356) connection lost > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60358) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60358) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60358) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > DEBUG mail.log:smtp.py:271 _handle_client readline: b'ehlo example.com\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60358) >> b'ehlo example.com' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60358) << > b'250-ip-10-84-234-254.eu-central-1.compute.internal' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60358) << b'250-SIZE 33554432' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60358) << b'250-SMTPUTF8' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60358) << b'250-AUTH DENYFALSE > DENYMISSING LOGIN NONE NULL PLAIN WITH-DASH WITH-MULTI-DASH WITH_UNDERSCORE' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60358) << b'250 HELP' > DEBUG mail.log:smtp.py:271 _handle_client readline: b'AUTH LOGIN\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60358) >> b'AUTH LOGIN' > DEBUG mail.log:smtp.py:921 Using builtin auth_ hook for 'LOGIN' > DEBUG mail.log:smtp.py:991 ('127.0.0.1', 60358) << challenge: b'334 > VXNlciBOYW1lAA==' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60358) << b'334 VXNlciBOYW1lAA==' > ------------------------------ Captured log call > ------------------------------- > DEBUG mail.log:smtp.py:1007 ('127.0.0.1', 60358) can't decode base64: b'=' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60358) << b"501 5.5.2 Can't > decode base64" > DEBUG mail.log:smtp.py:929 auth_LOGIN returned AuthResult(success=False, > handled=True, message=None, auth_data=...) > ---------------------------- Captured log teardown > ----------------------------- > DEBUG mail.log:smtp.py:271 _handle_client readline: b'QUIT\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60358) >> b'QUIT' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60358) << b'221 Bye' > INFO mail.log:smtp.py:510 ('127.0.0.1', 60358) connection lost > INFO mail.log:smtp.py:726 ('127.0.0.1', 60358) Connection lost during > _handle_client() > __________________________ TestStartTLS.test_starttls > __________________________ > > self = <aiosmtpd.tests.test_starttls.TestStartTLS object at 0x7f3719063750> > tls_controller = <aiosmtpd.controller.Controller object at 0x7f3718c27810> > client = <smtplib.SMTP object at 0x7f3718ec7610> > > @handler_data(class_=ReceivingHandler) > def test_starttls(self, tls_controller, client): > sender = "sen...@example.com" > recipients = ["rc...@example.com"] > code, _ = client.ehlo("example.com") > assert code == 250 > assert "starttls" in client.esmtp_features > > resp = client.starttls() > > aiosmtpd/tests/test_starttls.py:141: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > /usr/lib/python3.11/smtplib.py:790: in starttls > self.sock = context.wrap_socket(self.sock, > /usr/lib/python3.11/ssl.py:517: in wrap_socket > return self.sslsocket_class._create( > /usr/lib/python3.11/ssl.py:1075: in _create > self.do_handshake() > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <ssl.SSLSocket [closed] fd=-1, family=2, type=1, proto=6>, block = > False > > @_sslcopydoc > def do_handshake(self, block=False): > self._check_connected() > timeout = self.gettimeout() > try: > if timeout == 0.0 and block: > self.settimeout(None) > > self._sslobj.do_handshake() > E ssl.SSLZeroReturnError: TLS/SSL connection has been closed (EOF) > (_ssl.c:992) > > /usr/lib/python3.11/ssl.py:1346: SSLZeroReturnError > ------------------------------ Captured log setup > ------------------------------ > INFO mail.log:smtp.py:392 Available AUTH mechanisms: LOGIN(builtin) > PLAIN(builtin) > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60650) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60650) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60650) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > INFO mail.log:smtp.py:524 ('127.0.0.1', 60650) EOF received > INFO mail.log:smtp.py:726 ('127.0.0.1', 60650) Connection lost during > _handle_client() > INFO mail.log:smtp.py:510 ('127.0.0.1', 60650) connection lost > INFO mail.log:smtp.py:392 Available AUTH mechanisms: LOGIN(builtin) > PLAIN(builtin) > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60652) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60652) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60652) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > ------------------------------ Captured log call > ------------------------------- > DEBUG mail.log:smtp.py:271 _handle_client readline: b'ehlo example.com\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60652) >> b'ehlo example.com' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60652) << > b'250-ip-10-84-234-254.eu-central-1.compute.internal' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60652) << b'250-SIZE 33554432' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60652) << b'250-SMTPUTF8' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60652) << b'250-STARTTLS' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60652) << b'250 HELP' > DEBUG mail.log:smtp.py:271 _handle_client readline: b'STARTTLS\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60652) >> b'STARTTLS' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60652) << b'220 Ready to start > TLS' > ERROR asyncio:base_events.py:1765 Fatal error: protocol.data_received() > call failed. > protocol: <asyncio.sslproto.SSLProtocol object at 0x7f37190ff490> > transport: <_SelectorSocketTransport fd=19 read=polling write=<idle, > bufsize=0>> > Traceback (most recent call last): > File "/usr/lib/python3.11/asyncio/selector_events.py", line 1009, in > _read_ready__data_received > self._protocol.data_received(data) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > AttributeError: 'SSLProtocol' object has no attribute 'data_received' > ERROR mail.log:smtp.py:578 ('127.0.0.1', 60652) SMTP session exception > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/smtp.py", > line 888, in smtp_STARTTLS > await waiter > File "/usr/lib/python3.11/asyncio/selector_events.py", line 1009, in > _read_ready__data_received > self._protocol.data_received(data) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > AttributeError: 'SSLProtocol' object has no attribute 'data_received' > > The above exception was the direct cause of the following exception: > > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/smtp.py", > line 721, in _handle_client > await method(arg) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/smtp.py", > line 892, in smtp_STARTTLS > raise TLSSetupException() from error > aiosmtpd.smtp.TLSSetupException > INFO mail.log:smtp.py:510 ('127.0.0.1', 60652) connection lost > _______________________ TestStartTLS.test_starttls_quit > ________________________ > > self = <aiosmtpd.tests.test_starttls.TestStartTLS object at 0x7f37190622d0> > tls_controller = <aiosmtpd.controller.Controller object at 0x7f3718fe42d0> > client = <smtplib.SMTP object at 0x7f37190fd790> > > def test_starttls_quit(self, tls_controller, client): > code, _ = client.ehlo("example.com") > assert code == 250 > > resp = client.starttls() > > aiosmtpd/tests/test_starttls.py:152: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > /usr/lib/python3.11/smtplib.py:790: in starttls > self.sock = context.wrap_socket(self.sock, > /usr/lib/python3.11/ssl.py:517: in wrap_socket > return self.sslsocket_class._create( > /usr/lib/python3.11/ssl.py:1075: in _create > self.do_handshake() > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <ssl.SSLSocket [closed] fd=-1, family=2, type=1, proto=6>, block = > False > > @_sslcopydoc > def do_handshake(self, block=False): > self._check_connected() > timeout = self.gettimeout() > try: > if timeout == 0.0 and block: > self.settimeout(None) > > self._sslobj.do_handshake() > E ssl.SSLZeroReturnError: TLS/SSL connection has been closed (EOF) > (_ssl.c:992) > > /usr/lib/python3.11/ssl.py:1346: SSLZeroReturnError > ------------------------------ Captured log setup > ------------------------------ > INFO mail.log:smtp.py:392 Available AUTH mechanisms: LOGIN(builtin) > PLAIN(builtin) > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60654) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60654) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60654) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > INFO mail.log:smtp.py:524 ('127.0.0.1', 60654) EOF received > INFO mail.log:smtp.py:726 ('127.0.0.1', 60654) Connection lost during > _handle_client() > INFO mail.log:smtp.py:392 Available AUTH mechanisms: LOGIN(builtin) > PLAIN(builtin) > INFO mail.log:smtp.py:510 ('127.0.0.1', 60654) connection lost > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60656) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60656) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60656) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > ------------------------------ Captured log call > ------------------------------- > DEBUG mail.log:smtp.py:271 _handle_client readline: b'ehlo example.com\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60656) >> b'ehlo example.com' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60656) << > b'250-ip-10-84-234-254.eu-central-1.compute.internal' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60656) << b'250-SIZE 33554432' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60656) << b'250-SMTPUTF8' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60656) << b'250-STARTTLS' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60656) << b'250 HELP' > DEBUG mail.log:smtp.py:271 _handle_client readline: b'STARTTLS\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60656) >> b'STARTTLS' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60656) << b'220 Ready to start > TLS' > ERROR asyncio:base_events.py:1765 Fatal error: protocol.data_received() > call failed. > protocol: <asyncio.sslproto.SSLProtocol object at 0x7f3718ebfad0> > transport: <_SelectorSocketTransport fd=20 read=polling write=<idle, > bufsize=0>> > Traceback (most recent call last): > File "/usr/lib/python3.11/asyncio/selector_events.py", line 1009, in > _read_ready__data_received > self._protocol.data_received(data) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > AttributeError: 'SSLProtocol' object has no attribute 'data_received' > ERROR mail.log:smtp.py:578 ('127.0.0.1', 60656) SMTP session exception > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/smtp.py", > line 888, in smtp_STARTTLS > await waiter > File "/usr/lib/python3.11/asyncio/selector_events.py", line 1009, in > _read_ready__data_received > self._protocol.data_received(data) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > AttributeError: 'SSLProtocol' object has no attribute 'data_received' > > The above exception was the direct cause of the following exception: > > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/smtp.py", > line 721, in _handle_client > await method(arg) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/smtp.py", > line 892, in smtp_STARTTLS > raise TLSSetupException() from error > aiosmtpd.smtp.TLSSetupException > INFO mail.log:smtp.py:510 ('127.0.0.1', 60656) connection lost > ______________________ TestStartTLS.test_failed_handshake > ______________________ > > self = <aiosmtpd.tests.test_starttls.TestStartTLS object at 0x7f3719063310> > client = <smtplib.SMTP object at 0x7f3718c30f10> > > @handler_data(class_=HandshakeFailingHandler) > def test_failed_handshake(self, client): > code, _ = client.ehlo("example.com") > assert code == 250 > > resp = client.starttls() > > aiosmtpd/tests/test_starttls.py:162: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > /usr/lib/python3.11/smtplib.py:790: in starttls > self.sock = context.wrap_socket(self.sock, > /usr/lib/python3.11/ssl.py:517: in wrap_socket > return self.sslsocket_class._create( > /usr/lib/python3.11/ssl.py:1075: in _create > self.do_handshake() > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <ssl.SSLSocket [closed] fd=-1, family=2, type=1, proto=6>, block = > False > > @_sslcopydoc > def do_handshake(self, block=False): > self._check_connected() > timeout = self.gettimeout() > try: > if timeout == 0.0 and block: > self.settimeout(None) > > self._sslobj.do_handshake() > E ssl.SSLZeroReturnError: TLS/SSL connection has been closed (EOF) > (_ssl.c:992) > > /usr/lib/python3.11/ssl.py:1346: SSLZeroReturnError > ------------------------------ Captured log setup > ------------------------------ > INFO mail.log:smtp.py:392 Available AUTH mechanisms: LOGIN(builtin) > PLAIN(builtin) > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60658) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60658) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60658) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > INFO mail.log:smtp.py:524 ('127.0.0.1', 60658) EOF received > INFO mail.log:smtp.py:726 ('127.0.0.1', 60658) Connection lost during > _handle_client() > INFO mail.log:smtp.py:392 Available AUTH mechanisms: LOGIN(builtin) > PLAIN(builtin) > INFO mail.log:smtp.py:510 ('127.0.0.1', 60658) connection lost > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60660) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60660) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60660) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > ------------------------------ Captured log call > ------------------------------- > DEBUG mail.log:smtp.py:271 _handle_client readline: b'ehlo example.com\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60660) >> b'ehlo example.com' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60660) << > b'250-ip-10-84-234-254.eu-central-1.compute.internal' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60660) << b'250-SIZE 33554432' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60660) << b'250-SMTPUTF8' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60660) << b'250-STARTTLS' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60660) << b'250 HELP' > DEBUG mail.log:smtp.py:271 _handle_client readline: b'STARTTLS\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60660) >> b'STARTTLS' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60660) << b'220 Ready to start > TLS' > ERROR asyncio:base_events.py:1765 Fatal error: protocol.data_received() > call failed. > protocol: <asyncio.sslproto.SSLProtocol object at 0x7f3718ebd610> > transport: <_SelectorSocketTransport fd=20 read=polling write=<idle, > bufsize=0>> > Traceback (most recent call last): > File "/usr/lib/python3.11/asyncio/selector_events.py", line 1009, in > _read_ready__data_received > self._protocol.data_received(data) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > AttributeError: 'SSLProtocol' object has no attribute 'data_received' > ERROR mail.log:smtp.py:578 ('127.0.0.1', 60660) SMTP session exception > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/smtp.py", > line 888, in smtp_STARTTLS > await waiter > File "/usr/lib/python3.11/asyncio/selector_events.py", line 1009, in > _read_ready__data_received > self._protocol.data_received(data) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > AttributeError: 'SSLProtocol' object has no attribute 'data_received' > > The above exception was the direct cause of the following exception: > > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/smtp.py", > line 721, in _handle_client > await method(arg) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/smtp.py", > line 892, in smtp_STARTTLS > raise TLSSetupException() from error > aiosmtpd.smtp.TLSSetupException > INFO mail.log:smtp.py:510 ('127.0.0.1', 60660) connection lost > _______________________ TestTLSEnding.test_eof_received > ________________________ > > self = <aiosmtpd.tests.test_starttls.TestTLSEnding object at 0x7f37190a6090> > tls_controller = <aiosmtpd.controller.Controller object at 0x7f3719163ad0> > client = <smtplib.SMTP object at 0x7f3718ebd790> > > @handler_data(class_=EOFingHandler) > def test_eof_received(self, tls_controller, client): > # I don't like this. It's too intimately involved with the innards of > the SMTP > # class. But for the life of me, I can't figure out why coverage > there fail > # intermittently. > # > # I suspect it's a race condition, but with what, and how to prevent > that from > # happening, that's ... a mystery. > > # Entering portion of code where hang is possible (upon assertion > fail), so > # we must wrap with "try..finally". > try: > code, mesg = client.ehlo("example.com") > assert code == 250 > > resp = client.starttls() > > aiosmtpd/tests/test_starttls.py:221: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > /usr/lib/python3.11/smtplib.py:790: in starttls > self.sock = context.wrap_socket(self.sock, > /usr/lib/python3.11/ssl.py:517: in wrap_socket > return self.sslsocket_class._create( > /usr/lib/python3.11/ssl.py:1075: in _create > self.do_handshake() > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <ssl.SSLSocket [closed] fd=-1, family=2, type=1, proto=6>, block = > False > > @_sslcopydoc > def do_handshake(self, block=False): > self._check_connected() > timeout = self.gettimeout() > try: > if timeout == 0.0 and block: > self.settimeout(None) > > self._sslobj.do_handshake() > E ssl.SSLZeroReturnError: TLS/SSL connection has been closed (EOF) > (_ssl.c:992) > > /usr/lib/python3.11/ssl.py:1346: SSLZeroReturnError > ------------------------------ Captured log setup > ------------------------------ > INFO mail.log:smtp.py:392 Available AUTH mechanisms: LOGIN(builtin) > PLAIN(builtin) > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60678) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60678) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60678) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > INFO mail.log:smtp.py:524 ('127.0.0.1', 60678) EOF received > INFO mail.log:smtp.py:726 ('127.0.0.1', 60678) Connection lost during > _handle_client() > INFO mail.log:smtp.py:510 ('127.0.0.1', 60678) connection lost > INFO mail.log:smtp.py:392 Available AUTH mechanisms: LOGIN(builtin) > PLAIN(builtin) > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60680) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60680) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60680) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > ------------------------------ Captured log call > ------------------------------- > DEBUG mail.log:smtp.py:271 _handle_client readline: b'ehlo example.com\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60680) >> b'ehlo example.com' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60680) << > b'250-ip-10-84-234-254.eu-central-1.compute.internal' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60680) << b'250-SIZE 33554432' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60680) << b'250-SMTPUTF8' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60680) << b'250-STARTTLS' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60680) << b'250 HELP' > DEBUG mail.log:smtp.py:271 _handle_client readline: b'STARTTLS\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60680) >> b'STARTTLS' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60680) << b'220 Ready to start > TLS' > ERROR asyncio:base_events.py:1765 Fatal error: protocol.data_received() > call failed. > protocol: <asyncio.sslproto.SSLProtocol object at 0x7f3718f28bd0> > transport: <_SelectorSocketTransport fd=19 read=polling write=<idle, > bufsize=0>> > Traceback (most recent call last): > File "/usr/lib/python3.11/asyncio/selector_events.py", line 1009, in > _read_ready__data_received > self._protocol.data_received(data) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > AttributeError: 'SSLProtocol' object has no attribute 'data_received' > ERROR mail.log:smtp.py:578 ('127.0.0.1', 60680) SMTP session exception > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/smtp.py", > line 888, in smtp_STARTTLS > await waiter > File "/usr/lib/python3.11/asyncio/selector_events.py", line 1009, in > _read_ready__data_received > self._protocol.data_received(data) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > AttributeError: 'SSLProtocol' object has no attribute 'data_received' > > The above exception was the direct cause of the following exception: > > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/smtp.py", > line 721, in _handle_client > await method(arg) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/smtp.py", > line 892, in smtp_STARTTLS > raise TLSSetupException() from error > aiosmtpd.smtp.TLSSetupException > INFO mail.log:smtp.py:510 ('127.0.0.1', 60680) connection lost > __________________ TestTLSForgetsSessionData.test_forget_ehlo > __________________ > > self = <aiosmtpd.tests.test_starttls.TestTLSForgetsSessionData object at > 0x7f37190a7110> > client = <smtplib.SMTP object at 0x7f3718e9eed0> > > def test_forget_ehlo(self, client): > > resp = client.starttls() > > aiosmtpd/tests/test_starttls.py:254: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > /usr/lib/python3.11/smtplib.py:790: in starttls > self.sock = context.wrap_socket(self.sock, > /usr/lib/python3.11/ssl.py:517: in wrap_socket > return self.sslsocket_class._create( > /usr/lib/python3.11/ssl.py:1075: in _create > self.do_handshake() > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <ssl.SSLSocket [closed] fd=-1, family=2, type=1, proto=6>, block = > False > > @_sslcopydoc > def do_handshake(self, block=False): > self._check_connected() > timeout = self.gettimeout() > try: > if timeout == 0.0 and block: > self.settimeout(None) > > self._sslobj.do_handshake() > E ssl.SSLZeroReturnError: TLS/SSL connection has been closed (EOF) > (_ssl.c:992) > > /usr/lib/python3.11/ssl.py:1346: SSLZeroReturnError > ------------------------------ Captured log setup > ------------------------------ > INFO mail.log:smtp.py:392 Available AUTH mechanisms: LOGIN(builtin) > PLAIN(builtin) > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60686) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60686) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60686) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > INFO mail.log:smtp.py:524 ('127.0.0.1', 60686) EOF received > INFO mail.log:smtp.py:726 ('127.0.0.1', 60686) Connection lost during > _handle_client() > INFO mail.log:smtp.py:392 Available AUTH mechanisms: LOGIN(builtin) > PLAIN(builtin) > INFO mail.log:smtp.py:510 ('127.0.0.1', 60686) connection lost > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60688) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60688) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60688) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > ------------------------------ Captured log call > ------------------------------- > DEBUG mail.log:smtp.py:271 _handle_client readline: b'ehlo > ip-10-84-234-254.eu-central-1.compute.internal\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60688) >> b'ehlo > ip-10-84-234-254.eu-central-1.compute.internal' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60688) << > b'250-ip-10-84-234-254.eu-central-1.compute.internal' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60688) << b'250-SIZE 33554432' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60688) << b'250-SMTPUTF8' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60688) << b'250-STARTTLS' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60688) << b'250 HELP' > DEBUG mail.log:smtp.py:271 _handle_client readline: b'STARTTLS\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60688) >> b'STARTTLS' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60688) << b'220 Ready to start > TLS' > ERROR asyncio:base_events.py:1765 Fatal error: protocol.data_received() > call failed. > protocol: <asyncio.sslproto.SSLProtocol object at 0x7f3719048090> > transport: <_SelectorSocketTransport fd=20 read=polling write=<idle, > bufsize=0>> > Traceback (most recent call last): > File "/usr/lib/python3.11/asyncio/selector_events.py", line 1009, in > _read_ready__data_received > self._protocol.data_received(data) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > AttributeError: 'SSLProtocol' object has no attribute 'data_received' > ERROR mail.log:smtp.py:578 ('127.0.0.1', 60688) SMTP session exception > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/smtp.py", > line 888, in smtp_STARTTLS > await waiter > File "/usr/lib/python3.11/asyncio/selector_events.py", line 1009, in > _read_ready__data_received > self._protocol.data_received(data) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > AttributeError: 'SSLProtocol' object has no attribute 'data_received' > > The above exception was the direct cause of the following exception: > > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/smtp.py", > line 721, in _handle_client > await method(arg) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/smtp.py", > line 892, in smtp_STARTTLS > raise TLSSetupException() from error > aiosmtpd.smtp.TLSSetupException > INFO mail.log:smtp.py:510 ('127.0.0.1', 60688) connection lost > __________________ TestTLSForgetsSessionData.test_forget_mail > __________________ > > self = <aiosmtpd.tests.test_starttls.TestTLSForgetsSessionData object at > 0x7f3719062ad0> > client = <smtplib.SMTP object at 0x7f371904a350> > > > @pytest.mark.filterwarnings("ignore::pytest.PytestUnraisableExceptionWarning") > def test_forget_mail(self, client): > code, _ = client.ehlo("example.com") > assert code == 250 > resp = client.mail("sen...@example.com") > assert resp == S.S250_OK > > resp = client.starttls() > > aiosmtpd/tests/test_starttls.py:265: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > /usr/lib/python3.11/smtplib.py:790: in starttls > self.sock = context.wrap_socket(self.sock, > /usr/lib/python3.11/ssl.py:517: in wrap_socket > return self.sslsocket_class._create( > /usr/lib/python3.11/ssl.py:1075: in _create > self.do_handshake() > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <ssl.SSLSocket [closed] fd=-1, family=2, type=1, proto=6>, block = > False > > @_sslcopydoc > def do_handshake(self, block=False): > self._check_connected() > timeout = self.gettimeout() > try: > if timeout == 0.0 and block: > self.settimeout(None) > > self._sslobj.do_handshake() > E ssl.SSLZeroReturnError: TLS/SSL connection has been closed (EOF) > (_ssl.c:992) > > /usr/lib/python3.11/ssl.py:1346: SSLZeroReturnError > ------------------------------ Captured log setup > ------------------------------ > INFO mail.log:smtp.py:392 Available AUTH mechanisms: LOGIN(builtin) > PLAIN(builtin) > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60690) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60690) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60690) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > INFO mail.log:smtp.py:524 ('127.0.0.1', 60690) EOF received > INFO mail.log:smtp.py:726 ('127.0.0.1', 60690) Connection lost during > _handle_client() > INFO mail.log:smtp.py:392 Available AUTH mechanisms: LOGIN(builtin) > PLAIN(builtin) > INFO mail.log:smtp.py:510 ('127.0.0.1', 60690) connection lost > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60692) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60692) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60692) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > ------------------------------ Captured log call > ------------------------------- > DEBUG mail.log:smtp.py:271 _handle_client readline: b'ehlo example.com\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60692) >> b'ehlo example.com' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60692) << > b'250-ip-10-84-234-254.eu-central-1.compute.internal' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60692) << b'250-SIZE 33554432' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60692) << b'250-SMTPUTF8' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60692) << b'250-STARTTLS' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60692) << b'250 HELP' > DEBUG mail.log:smtp.py:271 _handle_client readline: b'mail > FROM:<sen...@example.com>\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60692) >> b'mail > FROM:<sen...@example.com>' > INFO mail.log:smtp.py:1264 ('127.0.0.1', 60692) sender: sen...@example.com > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60692) << b'250 OK' > DEBUG mail.log:smtp.py:271 _handle_client readline: b'STARTTLS\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60692) >> b'STARTTLS' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60692) << b'220 Ready to start > TLS' > ERROR asyncio:base_events.py:1765 Fatal error: protocol.data_received() > call failed. > protocol: <asyncio.sslproto.SSLProtocol object at 0x7f3718f28810> > transport: <_SelectorSocketTransport fd=20 read=polling write=<idle, > bufsize=0>> > Traceback (most recent call last): > File "/usr/lib/python3.11/asyncio/selector_events.py", line 1009, in > _read_ready__data_received > self._protocol.data_received(data) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > AttributeError: 'SSLProtocol' object has no attribute 'data_received' > ERROR mail.log:smtp.py:578 ('127.0.0.1', 60692) SMTP session exception > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/smtp.py", > line 888, in smtp_STARTTLS > await waiter > File "/usr/lib/python3.11/asyncio/selector_events.py", line 1009, in > _read_ready__data_received > self._protocol.data_received(data) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > AttributeError: 'SSLProtocol' object has no attribute 'data_received' > > The above exception was the direct cause of the following exception: > > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/smtp.py", > line 721, in _handle_client > await method(arg) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/smtp.py", > line 892, in smtp_STARTTLS > raise TLSSetupException() from error > aiosmtpd.smtp.TLSSetupException > INFO mail.log:smtp.py:510 ('127.0.0.1', 60692) connection lost > __________________ TestTLSForgetsSessionData.test_forget_rcpt > __________________ > > self = <aiosmtpd.tests.test_starttls.TestTLSForgetsSessionData object at > 0x7f37190a7650> > client = <smtplib.SMTP object at 0x7f37191c0450> > > def test_forget_rcpt(self, client): > code, _ = client.ehlo("example.com") > assert code == 250 > resp = client.mail("sen...@example.com") > assert resp == S.S250_OK > resp = client.rcpt("r...@example.com") > assert resp == S.S250_OK > > resp = client.starttls() > > aiosmtpd/tests/test_starttls.py:279: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > /usr/lib/python3.11/smtplib.py:790: in starttls > self.sock = context.wrap_socket(self.sock, > /usr/lib/python3.11/ssl.py:517: in wrap_socket > return self.sslsocket_class._create( > /usr/lib/python3.11/ssl.py:1075: in _create > self.do_handshake() > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <ssl.SSLSocket [closed] fd=-1, family=2, type=1, proto=6>, block = > False > > @_sslcopydoc > def do_handshake(self, block=False): > self._check_connected() > timeout = self.gettimeout() > try: > if timeout == 0.0 and block: > self.settimeout(None) > > self._sslobj.do_handshake() > E ssl.SSLZeroReturnError: TLS/SSL connection has been closed (EOF) > (_ssl.c:992) > > /usr/lib/python3.11/ssl.py:1346: SSLZeroReturnError > ------------------------------ Captured log setup > ------------------------------ > INFO mail.log:smtp.py:392 Available AUTH mechanisms: LOGIN(builtin) > PLAIN(builtin) > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60694) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60694) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60694) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > INFO mail.log:smtp.py:524 ('127.0.0.1', 60694) EOF received > INFO mail.log:smtp.py:726 ('127.0.0.1', 60694) Connection lost during > _handle_client() > INFO mail.log:smtp.py:392 Available AUTH mechanisms: LOGIN(builtin) > PLAIN(builtin) > INFO mail.log:smtp.py:510 ('127.0.0.1', 60694) connection lost > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60696) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60696) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60696) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > ------------------------------ Captured log call > ------------------------------- > DEBUG mail.log:smtp.py:271 _handle_client readline: b'ehlo example.com\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60696) >> b'ehlo example.com' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60696) << > b'250-ip-10-84-234-254.eu-central-1.compute.internal' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60696) << b'250-SIZE 33554432' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60696) << b'250-SMTPUTF8' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60696) << b'250-STARTTLS' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60696) << b'250 HELP' > DEBUG mail.log:smtp.py:271 _handle_client readline: b'mail > FROM:<sen...@example.com>\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60696) >> b'mail > FROM:<sen...@example.com>' > INFO mail.log:smtp.py:1264 ('127.0.0.1', 60696) sender: sen...@example.com > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60696) << b'250 OK' > DEBUG mail.log:smtp.py:271 _handle_client readline: b'rcpt > TO:<r...@example.com>\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60696) >> b'rcpt > TO:<r...@example.com>' > INFO mail.log:smtp.py:1306 ('127.0.0.1', 60696) recip: r...@example.com > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60696) << b'250 OK' > DEBUG mail.log:smtp.py:271 _handle_client readline: b'STARTTLS\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60696) >> b'STARTTLS' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60696) << b'220 Ready to start > TLS' > ERROR asyncio:base_events.py:1765 Fatal error: protocol.data_received() > call failed. > protocol: <asyncio.sslproto.SSLProtocol object at 0x7f3718e3ded0> > transport: <_SelectorSocketTransport fd=20 read=polling write=<idle, > bufsize=0>> > Traceback (most recent call last): > File "/usr/lib/python3.11/asyncio/selector_events.py", line 1009, in > _read_ready__data_received > self._protocol.data_received(data) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > AttributeError: 'SSLProtocol' object has no attribute 'data_received' > ERROR mail.log:smtp.py:578 ('127.0.0.1', 60696) SMTP session exception > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/smtp.py", > line 888, in smtp_STARTTLS > await waiter > File "/usr/lib/python3.11/asyncio/selector_events.py", line 1009, in > _read_ready__data_received > self._protocol.data_received(data) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > AttributeError: 'SSLProtocol' object has no attribute 'data_received' > > The above exception was the direct cause of the following exception: > > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/smtp.py", > line 721, in _handle_client > await method(arg) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/smtp.py", > line 892, in smtp_STARTTLS > raise TLSSetupException() from error > aiosmtpd.smtp.TLSSetupException > INFO mail.log:smtp.py:510 ('127.0.0.1', 60696) connection lost > _______________________ TestRequireTLSAUTH.test_auth_tls > _______________________ > > self = <aiosmtpd.tests.test_starttls.TestRequireTLSAUTH object at > 0x7f371908de90> > client = <smtplib.SMTP object at 0x7f3719703d90> > > def test_auth_tls(self, client): > > resp = client.starttls() > > aiosmtpd/tests/test_starttls.py:346: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > /usr/lib/python3.11/smtplib.py:790: in starttls > self.sock = context.wrap_socket(self.sock, > /usr/lib/python3.11/ssl.py:517: in wrap_socket > return self.sslsocket_class._create( > /usr/lib/python3.11/ssl.py:1075: in _create > self.do_handshake() > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <ssl.SSLSocket [closed] fd=-1, family=2, type=1, proto=6>, block = > False > > @_sslcopydoc > def do_handshake(self, block=False): > self._check_connected() > timeout = self.gettimeout() > try: > if timeout == 0.0 and block: > self.settimeout(None) > > self._sslobj.do_handshake() > E ssl.SSLZeroReturnError: TLS/SSL connection has been closed (EOF) > (_ssl.c:992) > > /usr/lib/python3.11/ssl.py:1346: SSLZeroReturnError > ------------------------------ Captured log setup > ------------------------------ > INFO mail.log:smtp.py:392 Available AUTH mechanisms: LOGIN(builtin) > PLAIN(builtin) > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60738) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60738) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60738) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > INFO mail.log:smtp.py:524 ('127.0.0.1', 60738) EOF received > INFO mail.log:smtp.py:726 ('127.0.0.1', 60738) Connection lost during > _handle_client() > INFO mail.log:smtp.py:392 Available AUTH mechanisms: LOGIN(builtin) > PLAIN(builtin) > INFO mail.log:smtp.py:510 ('127.0.0.1', 60738) connection lost > INFO mail.log:smtp.py:504 Peer: ('127.0.0.1', 60740) > INFO mail.log:smtp.py:584 ('127.0.0.1', 60740) handling connection > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60740) << b'220 > ip-10-84-234-254.eu-central-1.compute.internal Python SMTP 1.4.2' > ------------------------------ Captured log call > ------------------------------- > DEBUG mail.log:smtp.py:271 _handle_client readline: b'ehlo > ip-10-84-234-254.eu-central-1.compute.internal\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60740) >> b'ehlo > ip-10-84-234-254.eu-central-1.compute.internal' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60740) << > b'250-ip-10-84-234-254.eu-central-1.compute.internal' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60740) << b'250-SIZE 33554432' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60740) << b'250-SMTPUTF8' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60740) << b'250-STARTTLS' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60740) << b'250 HELP' > DEBUG mail.log:smtp.py:271 _handle_client readline: b'STARTTLS\r\n' > INFO mail.log:smtp.py:271 ('127.0.0.1', 60740) >> b'STARTTLS' > DEBUG mail.log:smtp.py:570 ('127.0.0.1', 60740) << b'220 Ready to start > TLS' > ERROR asyncio:base_events.py:1765 Fatal error: protocol.data_received() > call failed. > protocol: <asyncio.sslproto.SSLProtocol object at 0x7f3718b69fd0> > transport: <_SelectorSocketTransport fd=20 read=polling write=<idle, > bufsize=0>> > Traceback (most recent call last): > File "/usr/lib/python3.11/asyncio/selector_events.py", line 1009, in > _read_ready__data_received > self._protocol.data_received(data) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > AttributeError: 'SSLProtocol' object has no attribute 'data_received' > =============================== warnings summary > =============================== > .pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/tests/test_handlers.py::TestMessage::test_message_async > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build/aiosmtpd/handlers.py:183: > DeprecationWarning: There is no current event loop > self.loop = loop or asyncio.get_event_loop() > > -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html > =========================== short test summary info > ============================ > FAILED > aiosmtpd/tests/test_smtp.py::TestSMTPAuth::test_auth_loginteract_warning > FAILED aiosmtpd/tests/test_smtp.py::TestAuthMechanisms::test_plain1_empty - > a... > FAILED > aiosmtpd/tests/test_smtp.py::TestAuthMechanisms::test_plain2_no_credentials > FAILED > aiosmtpd/tests/test_smtp.py::TestAuthMechanisms::test_login3_empty_credentials > FAILED > aiosmtpd/tests/test_smtp.py::TestAuthMechanisms::test_login3_abort_password > FAILED aiosmtpd/tests/test_starttls.py::TestStartTLS::test_starttls - > ssl.SSL... > FAILED aiosmtpd/tests/test_starttls.py::TestStartTLS::test_starttls_quit - > ss... > FAILED aiosmtpd/tests/test_starttls.py::TestStartTLS::test_failed_handshake > FAILED aiosmtpd/tests/test_starttls.py::TestTLSEnding::test_eof_received - > ss... > FAILED > aiosmtpd/tests/test_starttls.py::TestTLSForgetsSessionData::test_forget_ehlo > FAILED > aiosmtpd/tests/test_starttls.py::TestTLSForgetsSessionData::test_forget_mail > FAILED > aiosmtpd/tests/test_starttls.py::TestTLSForgetsSessionData::test_forget_rcpt > FAILED aiosmtpd/tests/test_starttls.py::TestRequireTLSAUTH::test_auth_tls - > s... > ERROR aiosmtpd/tests/test_smtp.py::TestSMTPAuth::test_auth_loginteract_warning > XPASS > aiosmtpd/tests/test_smtp.py::TestAuthMechanisms::test_byclient[login-True] > XPASS > aiosmtpd/tests/test_smtp.py::TestAuthMechanisms::test_byclient[login-False] > XPASS > aiosmtpd/tests/test_smtp.py::TestAuthMechanisms::test_byclient[plain-True] > XPASS > aiosmtpd/tests/test_smtp.py::TestAuthMechanisms::test_byclient[plain-False] > XPASS aiosmtpd/tests/test_smtp.py::TestAuthArgs::test_warn_authreqnotls > asyncio.get_event_loop raises DeprecationWarning (bpo-39529) > == 13 failed, 533 passed, 1 skipped, 5 xpassed, 1 warning, 1 error in 46.36s > === > E: pybuild pybuild:386: test: plugin pyproject failed with: exit code=1: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aiosmtpd/build; python3.11 -m pytest > I: pybuild base:240: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aiosmtpd/build; python3.10 -m pytest > ============================= test session starts > ============================== > platform linux -- Python 3.10.9, pytest-7.2.0, pluggy-1.0.0+repack > rootdir: /<<PKGBUILDDIR>>, configfile: pyproject.toml > plugins: mock-3.8.2 > collected 552 items > > aiosmtpd/qa/test_0packaging.py .s. [ > 0%] > aiosmtpd/qa/test_1testsuite.py ..... [ > 1%] > aiosmtpd/tests/test_handlers.py ....................................... [ > 8%] > aiosmtpd/tests/test_lmtp.py .... [ > 9%] > aiosmtpd/tests/test_main.py ...................................... [ > 16%] > aiosmtpd/tests/test_proxyprotocol.py ................................... [ > 22%] > ........................................................................ [ > 35%] > ............. [ > 37%] > aiosmtpd/tests/test_server.py ................................. [ > 43%] > aiosmtpd/tests/test_smtp.py ............................................ [ > 51%] > ........................................................................ [ > 64%] > ...............................................................XXXX..... [ > 77%] > ........................................................................ [ > 90%] > ......X............. [ > 94%] > aiosmtpd/tests/test_smtps.py . [ > 94%] > aiosmtpd/tests/test_starttls.py ............................. > [100%] > > =============================== warnings summary > =============================== > .pybuild/cpython3_3.10_aiosmtpd/build/aiosmtpd/tests/test_handlers.py::TestMessage::test_message_async > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aiosmtpd/build/aiosmtpd/handlers.py:183: > DeprecationWarning: There is no current event loop > self.loop = loop or asyncio.get_event_loop() > > -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html > =========================== short test summary info > ============================ > XPASS > aiosmtpd/tests/test_smtp.py::TestAuthMechanisms::test_byclient[login-True] > XPASS > aiosmtpd/tests/test_smtp.py::TestAuthMechanisms::test_byclient[login-False] > XPASS > aiosmtpd/tests/test_smtp.py::TestAuthMechanisms::test_byclient[plain-True] > XPASS > aiosmtpd/tests/test_smtp.py::TestAuthMechanisms::test_byclient[plain-False] > XPASS aiosmtpd/tests/test_smtp.py::TestAuthArgs::test_warn_authreqnotls > asyncio.get_event_loop raises DeprecationWarning (bpo-39529) > ============ 546 passed, 1 skipped, 5 xpassed, 1 warning in 46.46s > ============= > rm -fr -- /tmp/dh-xdg-rundir-K_3VzjEW > dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.11 > 3.10" returned exit code 13 The full build log is available from: http://qa-logs.debian.net/2022/12/20/python-aiosmtpd_1.4.2-4_unstable.log All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221220;users=lu...@debian.org or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221220&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! If you reassign this bug to another package, please mark it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.