>>> py3-xlib: Building community/py3-xlib 0.33-r3 (using abuild 3.15.0-r0) started Mon, 13 Oct 2025 06:38:54 +0000 >>> py3-xlib: Validating /home/udu/aports/community/py3-xlib/APKBUILD... >>> WARNING: py3-xlib: No maintainer >>> py3-xlib: Analyzing dependencies... >>> py3-xlib: Installing for build: build-base py3-six py3-gpep517 py3-setuptools_scm py3-wheel py3-mock py3-pytest xvfb-run WARNING: opening /home/udu/packages//community: No such file or directory WARNING: opening /home/udu/packages//main: No such file or directory fetch http://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.22/community/x86_64/APKINDEX.tar.gz (1/76) Installing py3-six-pyc (1.17.0-r0) (2/76) Installing py3-six (1.17.0-r0) (3/76) Installing py3-installer (0.7.0-r2) (4/76) Installing py3-installer-pyc (0.7.0-r2) (5/76) Installing py3-gpep517 (19-r0) (6/76) Installing py3-gpep517-pyc (19-r0) (7/76) Installing py3-parsing (3.2.3-r0) (8/76) Installing py3-parsing-pyc (3.2.3-r0) (9/76) Installing py3-packaging (25.0-r0) (10/76) Installing py3-packaging-pyc (25.0-r0) (11/76) Installing py3-setuptools (80.9.0-r0) (12/76) Installing py3-setuptools-pyc (80.9.0-r0) (13/76) Installing py3-setuptools_scm (8.3.1-r0) (14/76) Installing py3-setuptools_scm-pyc (8.3.1-r0) (15/76) Installing py3-wheel (0.46.1-r0) (16/76) Installing py3-wheel-pyc (0.46.1-r0) (17/76) Installing py3-mock (5.2.0-r0) (18/76) Installing py3-mock-pyc (5.2.0-r0) (19/76) Installing py3-iniconfig (2.1.0-r0) (20/76) Installing py3-iniconfig-pyc (2.1.0-r0) (21/76) Installing py3-pluggy (1.5.0-r0) (22/76) Installing py3-pluggy-pyc (1.5.0-r0) (23/76) Installing py3-py (1.11.0-r4) (24/76) Installing py3-py-pyc (1.11.0-r4) (25/76) Installing py3-pytest (8.3.5-r0) (26/76) Installing py3-pytest-pyc (8.3.5-r0) (27/76) Installing libxau (1.0.12-r0) (28/76) Installing libmd (1.1.0-r0) (29/76) Installing libbsd (0.12.2-r0) (30/76) Installing libxdmcp (1.1.5-r1) (31/76) Installing libxcb (1.17.0-r0) (32/76) Installing libx11 (1.8.11-r0) (33/76) Installing libxext (1.3.6-r2) (34/76) Installing libice (1.1.2-r0) (35/76) Installing libuuid (2.41-r9) (36/76) Installing libsm (1.2.5-r0) (37/76) Installing libxt (1.3.1-r0) (38/76) Installing libxmu (1.2.1-r0) (39/76) Installing xauth (1.1.3-r0) (40/76) Installing encodings (1.0.7-r1) (41/76) Installing font-alias (1.0.5-r0) (42/76) Installing libfontenc (1.1.8-r0) (43/76) Installing libpng (1.6.47-r0) (44/76) Installing freetype (2.13.3-r0) (45/76) Installing mkfontscale (1.2.3-r1) (46/76) Installing fontconfig (2.15.0-r3) (47/76) Installing util-macros (1.20.1-r0) (48/76) Installing font-cursor-misc (1.0.4-r1) (49/76) Installing font-misc-misc (1.1.3-r1) (50/76) Installing libxml2 (2.13.9-r0) (51/76) Installing llvm20-libs (20.1.8-r0) (52/76) Installing spirv-tools (1.4.313.0-r0) (53/76) Installing hwdata-pci (0.395-r0) (54/76) Installing libpciaccess (0.18.1-r0) (55/76) Installing libdrm (2.4.124-r0) (56/76) Installing libelf (0.193-r0) (57/76) Installing wayland-libs-server (1.23.1-r3) (58/76) Installing libxshmfence (1.3.3-r0) (59/76) Installing mesa (25.1.9-r0) (60/76) Installing mesa-gbm (25.1.9-r0) (61/76) Installing wayland-libs-client (1.23.1-r3) (62/76) Installing mesa-egl (25.1.9-r0) (63/76) Installing libxkbfile (1.1.3-r0) (64/76) Installing xkbcomp (1.4.7-r0) (65/76) Installing xkeyboard-config (2.43-r0) (66/76) Installing xorg-server-common (21.1.18-r0) (67/76) Installing libxxf86vm (1.1.6-r0) (68/76) Installing mesa-gl (25.1.9-r0) (69/76) Installing libxfont2 (2.0.7-r0) (70/76) Installing nettle (3.10.1-r0) (71/76) Installing pixman (0.46.4-r0) (72/76) Installing xvfb (21.1.18-r0) (73/76) Installing coreutils-fmt (9.7-r1) (74/76) Installing mcookie (2.41-r9) (75/76) Installing xvfb-run (1.20.10.3-r2) (76/76) Installing .makedepends-py3-xlib (20251013.063855) Executing busybox-1.37.0-r19.trigger Executing mkfontscale-1.2.3-r1.trigger Executing fontconfig-2.15.0-r3.trigger OK: 643 MiB in 165 packages >>> py3-xlib: Cleaning up srcdir >>> py3-xlib: Cleaning up pkgdir >>> py3-xlib: Cleaning up tmpdir >>> py3-xlib: Fetching https://github.com/python-xlib/python-xlib/releases/download/0.33/python-xlib-0.33.tar.bz2 >>> py3-xlib: Fetching https://github.com/python-xlib/python-xlib/releases/download/0.33/python-xlib-0.33.tar.bz2 >>> py3-xlib: Checking sha512sums... python-xlib-0.33.tar.bz2: OK >>> py3-xlib: Unpacking /var/cache/distfiles/python-xlib-0.33.tar.bz2... 2025-10-13 06:38:57,453 gpep517 INFO Building wheel via backend setuptools.build_meta:__legacy__ :3: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. /usr/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+) See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() 2025-10-13 06:38:57,480 root INFO running bdist_wheel /usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:135: SetuptoolsDeprecationWarning: bdist_wheel.universal is deprecated !! ******************************************************************************** With Python 2.7 end-of-life, support for building universal wheels (i.e., wheels that support both Python 2 and Python 3) is being obviated. Please discontinue using this option, or if you still need it, file an issue with pypa/setuptools describing your use case. This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. ******************************************************************************** !! self.finalize_options() 2025-10-13 06:38:57,489 root INFO running build 2025-10-13 06:38:57,489 root INFO running build_py 2025-10-13 06:38:57,491 root INFO creating build/lib/Xlib 2025-10-13 06:38:57,491 root INFO copying Xlib/Xatom.py -> build/lib/Xlib 2025-10-13 06:38:57,491 root INFO copying Xlib/error.py -> build/lib/Xlib 2025-10-13 06:38:57,491 root INFO copying Xlib/XK.py -> build/lib/Xlib 2025-10-13 06:38:57,492 root INFO copying Xlib/Xutil.py -> build/lib/Xlib 2025-10-13 06:38:57,492 root INFO copying Xlib/rdb.py -> build/lib/Xlib 2025-10-13 06:38:57,492 root INFO copying Xlib/X.py -> build/lib/Xlib 2025-10-13 06:38:57,492 root INFO copying Xlib/threaded.py -> build/lib/Xlib 2025-10-13 06:38:57,492 root INFO copying Xlib/display.py -> build/lib/Xlib 2025-10-13 06:38:57,492 root INFO copying Xlib/Xcursorfont.py -> build/lib/Xlib 2025-10-13 06:38:57,492 root INFO copying Xlib/__init__.py -> build/lib/Xlib 2025-10-13 06:38:57,492 root INFO copying Xlib/xauth.py -> build/lib/Xlib 2025-10-13 06:38:57,492 root INFO creating build/lib/Xlib/ext 2025-10-13 06:38:57,492 root INFO copying Xlib/ext/dpms.py -> build/lib/Xlib/ext 2025-10-13 06:38:57,492 root INFO copying Xlib/ext/ge.py -> build/lib/Xlib/ext 2025-10-13 06:38:57,493 root INFO copying Xlib/ext/damage.py -> build/lib/Xlib/ext 2025-10-13 06:38:57,493 root INFO copying Xlib/ext/xfixes.py -> build/lib/Xlib/ext 2025-10-13 06:38:57,493 root INFO copying Xlib/ext/shape.py -> build/lib/Xlib/ext 2025-10-13 06:38:57,493 root INFO copying Xlib/ext/randr.py -> build/lib/Xlib/ext 2025-10-13 06:38:57,493 root INFO copying Xlib/ext/xtest.py -> build/lib/Xlib/ext 2025-10-13 06:38:57,493 root INFO copying Xlib/ext/security.py -> build/lib/Xlib/ext 2025-10-13 06:38:57,493 root INFO copying Xlib/ext/xinput.py -> build/lib/Xlib/ext 2025-10-13 06:38:57,493 root INFO copying Xlib/ext/xinerama.py -> build/lib/Xlib/ext 2025-10-13 06:38:57,493 root INFO copying Xlib/ext/record.py -> build/lib/Xlib/ext 2025-10-13 06:38:57,493 root INFO copying Xlib/ext/res.py -> build/lib/Xlib/ext 2025-10-13 06:38:57,493 root INFO copying Xlib/ext/__init__.py -> build/lib/Xlib/ext 2025-10-13 06:38:57,493 root INFO copying Xlib/ext/screensaver.py -> build/lib/Xlib/ext 2025-10-13 06:38:57,494 root INFO copying Xlib/ext/nvcontrol.py -> build/lib/Xlib/ext 2025-10-13 06:38:57,494 root INFO copying Xlib/ext/composite.py -> build/lib/Xlib/ext 2025-10-13 06:38:57,494 root INFO creating build/lib/Xlib/keysymdef 2025-10-13 06:38:57,494 root INFO copying Xlib/keysymdef/arabic.py -> build/lib/Xlib/keysymdef 2025-10-13 06:38:57,494 root INFO copying Xlib/keysymdef/latin1.py -> build/lib/Xlib/keysymdef 2025-10-13 06:38:57,494 root INFO copying Xlib/keysymdef/apl.py -> build/lib/Xlib/keysymdef 2025-10-13 06:38:57,494 root INFO copying Xlib/keysymdef/special.py -> build/lib/Xlib/keysymdef 2025-10-13 06:38:57,494 root INFO copying Xlib/keysymdef/cyrillic.py -> build/lib/Xlib/keysymdef 2025-10-13 06:38:57,494 root INFO copying Xlib/keysymdef/xf86.py -> build/lib/Xlib/keysymdef 2025-10-13 06:38:57,494 root INFO copying Xlib/keysymdef/latin2.py -> build/lib/Xlib/keysymdef 2025-10-13 06:38:57,495 root INFO copying Xlib/keysymdef/latin4.py -> build/lib/Xlib/keysymdef 2025-10-13 06:38:57,495 root INFO copying Xlib/keysymdef/katakana.py -> build/lib/Xlib/keysymdef 2025-10-13 06:38:57,495 root INFO copying Xlib/keysymdef/xkb.py -> build/lib/Xlib/keysymdef 2025-10-13 06:38:57,495 root INFO copying Xlib/keysymdef/xk3270.py -> build/lib/Xlib/keysymdef 2025-10-13 06:38:57,495 root INFO copying Xlib/keysymdef/miscellany.py -> build/lib/Xlib/keysymdef 2025-10-13 06:38:57,495 root INFO copying Xlib/keysymdef/latin3.py -> build/lib/Xlib/keysymdef 2025-10-13 06:38:57,495 root INFO copying Xlib/keysymdef/hebrew.py -> build/lib/Xlib/keysymdef 2025-10-13 06:38:57,495 root INFO copying Xlib/keysymdef/technical.py -> build/lib/Xlib/keysymdef 2025-10-13 06:38:57,495 root INFO copying Xlib/keysymdef/korean.py -> build/lib/Xlib/keysymdef 2025-10-13 06:38:57,495 root INFO copying Xlib/keysymdef/__init__.py -> build/lib/Xlib/keysymdef 2025-10-13 06:38:57,495 root INFO copying Xlib/keysymdef/thai.py -> build/lib/Xlib/keysymdef 2025-10-13 06:38:57,495 root INFO copying Xlib/keysymdef/greek.py -> build/lib/Xlib/keysymdef 2025-10-13 06:38:57,495 root INFO copying Xlib/keysymdef/publishing.py -> build/lib/Xlib/keysymdef 2025-10-13 06:38:57,496 root INFO creating build/lib/Xlib/protocol 2025-10-13 06:38:57,496 root INFO copying Xlib/protocol/event.py -> build/lib/Xlib/protocol 2025-10-13 06:38:57,496 root INFO copying Xlib/protocol/display.py -> build/lib/Xlib/protocol 2025-10-13 06:38:57,496 root INFO copying Xlib/protocol/rq.py -> build/lib/Xlib/protocol 2025-10-13 06:38:57,496 root INFO copying Xlib/protocol/request.py -> build/lib/Xlib/protocol 2025-10-13 06:38:57,496 root INFO copying Xlib/protocol/structs.py -> build/lib/Xlib/protocol 2025-10-13 06:38:57,496 root INFO copying Xlib/protocol/__init__.py -> build/lib/Xlib/protocol 2025-10-13 06:38:57,496 root INFO creating build/lib/Xlib/support 2025-10-13 06:38:57,496 root INFO copying Xlib/support/lock.py -> build/lib/Xlib/support 2025-10-13 06:38:57,496 root INFO copying Xlib/support/connect.py -> build/lib/Xlib/support 2025-10-13 06:38:57,497 root INFO copying Xlib/support/vms_connect.py -> build/lib/Xlib/support 2025-10-13 06:38:57,497 root INFO copying Xlib/support/__init__.py -> build/lib/Xlib/support 2025-10-13 06:38:57,497 root INFO copying Xlib/support/unix_connect.py -> build/lib/Xlib/support 2025-10-13 06:38:57,497 root INFO creating build/lib/Xlib/xobject 2025-10-13 06:38:57,497 root INFO copying Xlib/xobject/cursor.py -> build/lib/Xlib/xobject 2025-10-13 06:38:57,497 root INFO copying Xlib/xobject/icccm.py -> build/lib/Xlib/xobject 2025-10-13 06:38:57,497 root INFO copying Xlib/xobject/fontable.py -> build/lib/Xlib/xobject 2025-10-13 06:38:57,497 root INFO copying Xlib/xobject/drawable.py -> build/lib/Xlib/xobject 2025-10-13 06:38:57,497 root INFO copying Xlib/xobject/resource.py -> build/lib/Xlib/xobject 2025-10-13 06:38:57,497 root INFO copying Xlib/xobject/__init__.py -> build/lib/Xlib/xobject 2025-10-13 06:38:57,497 root INFO copying Xlib/xobject/colormap.py -> build/lib/Xlib/xobject 2025-10-13 06:38:57,502 root INFO installing to build/bdist.linux-x86_64/wheel 2025-10-13 06:38:57,502 root INFO running install 2025-10-13 06:38:57,506 root INFO running install_lib 2025-10-13 06:38:57,508 root INFO creating build/bdist.linux-x86_64/wheel 2025-10-13 06:38:57,508 root INFO creating build/bdist.linux-x86_64/wheel/Xlib 2025-10-13 06:38:57,508 root INFO creating build/bdist.linux-x86_64/wheel/Xlib/xobject 2025-10-13 06:38:57,508 root INFO copying build/lib/Xlib/xobject/cursor.py -> build/bdist.linux-x86_64/wheel/./Xlib/xobject 2025-10-13 06:38:57,508 root INFO copying build/lib/Xlib/xobject/icccm.py -> build/bdist.linux-x86_64/wheel/./Xlib/xobject 2025-10-13 06:38:57,509 root INFO copying build/lib/Xlib/xobject/fontable.py -> build/bdist.linux-x86_64/wheel/./Xlib/xobject 2025-10-13 06:38:57,509 root INFO copying build/lib/Xlib/xobject/drawable.py -> build/bdist.linux-x86_64/wheel/./Xlib/xobject 2025-10-13 06:38:57,509 root INFO copying build/lib/Xlib/xobject/resource.py -> build/bdist.linux-x86_64/wheel/./Xlib/xobject 2025-10-13 06:38:57,509 root INFO copying build/lib/Xlib/xobject/__init__.py -> build/bdist.linux-x86_64/wheel/./Xlib/xobject 2025-10-13 06:38:57,509 root INFO copying build/lib/Xlib/xobject/colormap.py -> build/bdist.linux-x86_64/wheel/./Xlib/xobject 2025-10-13 06:38:57,509 root INFO copying build/lib/Xlib/Xatom.py -> build/bdist.linux-x86_64/wheel/./Xlib 2025-10-13 06:38:57,509 root INFO copying build/lib/Xlib/error.py -> build/bdist.linux-x86_64/wheel/./Xlib 2025-10-13 06:38:57,509 root INFO copying build/lib/Xlib/XK.py -> build/bdist.linux-x86_64/wheel/./Xlib 2025-10-13 06:38:57,509 root INFO copying build/lib/Xlib/Xutil.py -> build/bdist.linux-x86_64/wheel/./Xlib 2025-10-13 06:38:57,509 root INFO copying build/lib/Xlib/rdb.py -> build/bdist.linux-x86_64/wheel/./Xlib 2025-10-13 06:38:57,509 root INFO copying build/lib/Xlib/X.py -> build/bdist.linux-x86_64/wheel/./Xlib 2025-10-13 06:38:57,509 root INFO creating build/bdist.linux-x86_64/wheel/Xlib/protocol 2025-10-13 06:38:57,509 root INFO copying build/lib/Xlib/protocol/event.py -> build/bdist.linux-x86_64/wheel/./Xlib/protocol 2025-10-13 06:38:57,509 root INFO copying build/lib/Xlib/protocol/display.py -> build/bdist.linux-x86_64/wheel/./Xlib/protocol 2025-10-13 06:38:57,509 root INFO copying build/lib/Xlib/protocol/rq.py -> build/bdist.linux-x86_64/wheel/./Xlib/protocol 2025-10-13 06:38:57,509 root INFO copying build/lib/Xlib/protocol/request.py -> build/bdist.linux-x86_64/wheel/./Xlib/protocol 2025-10-13 06:38:57,510 root INFO copying build/lib/Xlib/protocol/structs.py -> build/bdist.linux-x86_64/wheel/./Xlib/protocol 2025-10-13 06:38:57,510 root INFO copying build/lib/Xlib/protocol/__init__.py -> build/bdist.linux-x86_64/wheel/./Xlib/protocol 2025-10-13 06:38:57,510 root INFO creating build/bdist.linux-x86_64/wheel/Xlib/support 2025-10-13 06:38:57,510 root INFO copying build/lib/Xlib/support/lock.py -> build/bdist.linux-x86_64/wheel/./Xlib/support 2025-10-13 06:38:57,510 root INFO copying build/lib/Xlib/support/connect.py -> build/bdist.linux-x86_64/wheel/./Xlib/support 2025-10-13 06:38:57,510 root INFO copying build/lib/Xlib/support/vms_connect.py -> build/bdist.linux-x86_64/wheel/./Xlib/support 2025-10-13 06:38:57,510 root INFO copying build/lib/Xlib/support/__init__.py -> build/bdist.linux-x86_64/wheel/./Xlib/support 2025-10-13 06:38:57,510 root INFO copying build/lib/Xlib/support/unix_connect.py -> build/bdist.linux-x86_64/wheel/./Xlib/support 2025-10-13 06:38:57,510 root INFO copying build/lib/Xlib/threaded.py -> build/bdist.linux-x86_64/wheel/./Xlib 2025-10-13 06:38:57,510 root INFO copying build/lib/Xlib/display.py -> build/bdist.linux-x86_64/wheel/./Xlib 2025-10-13 06:38:57,510 root INFO creating build/bdist.linux-x86_64/wheel/Xlib/ext 2025-10-13 06:38:57,510 root INFO copying build/lib/Xlib/ext/dpms.py -> build/bdist.linux-x86_64/wheel/./Xlib/ext 2025-10-13 06:38:57,510 root INFO copying build/lib/Xlib/ext/ge.py -> build/bdist.linux-x86_64/wheel/./Xlib/ext 2025-10-13 06:38:57,510 root INFO copying build/lib/Xlib/ext/damage.py -> build/bdist.linux-x86_64/wheel/./Xlib/ext 2025-10-13 06:38:57,510 root INFO copying build/lib/Xlib/ext/xfixes.py -> build/bdist.linux-x86_64/wheel/./Xlib/ext 2025-10-13 06:38:57,511 root INFO copying build/lib/Xlib/ext/shape.py -> build/bdist.linux-x86_64/wheel/./Xlib/ext 2025-10-13 06:38:57,511 root INFO copying build/lib/Xlib/ext/randr.py -> build/bdist.linux-x86_64/wheel/./Xlib/ext 2025-10-13 06:38:57,511 root INFO copying build/lib/Xlib/ext/xtest.py -> build/bdist.linux-x86_64/wheel/./Xlib/ext 2025-10-13 06:38:57,511 root INFO copying build/lib/Xlib/ext/security.py -> build/bdist.linux-x86_64/wheel/./Xlib/ext 2025-10-13 06:38:57,511 root INFO copying build/lib/Xlib/ext/xinput.py -> build/bdist.linux-x86_64/wheel/./Xlib/ext 2025-10-13 06:38:57,511 root INFO copying build/lib/Xlib/ext/xinerama.py -> build/bdist.linux-x86_64/wheel/./Xlib/ext 2025-10-13 06:38:57,511 root INFO copying build/lib/Xlib/ext/record.py -> build/bdist.linux-x86_64/wheel/./Xlib/ext 2025-10-13 06:38:57,511 root INFO copying build/lib/Xlib/ext/res.py -> build/bdist.linux-x86_64/wheel/./Xlib/ext 2025-10-13 06:38:57,511 root INFO copying build/lib/Xlib/ext/__init__.py -> build/bdist.linux-x86_64/wheel/./Xlib/ext 2025-10-13 06:38:57,511 root INFO copying build/lib/Xlib/ext/screensaver.py -> build/bdist.linux-x86_64/wheel/./Xlib/ext 2025-10-13 06:38:57,511 root INFO copying build/lib/Xlib/ext/nvcontrol.py -> build/bdist.linux-x86_64/wheel/./Xlib/ext 2025-10-13 06:38:57,511 root INFO copying build/lib/Xlib/ext/composite.py -> build/bdist.linux-x86_64/wheel/./Xlib/ext 2025-10-13 06:38:57,511 root INFO creating build/bdist.linux-x86_64/wheel/Xlib/keysymdef 2025-10-13 06:38:57,511 root INFO copying build/lib/Xlib/keysymdef/arabic.py -> build/bdist.linux-x86_64/wheel/./Xlib/keysymdef 2025-10-13 06:38:57,511 root INFO copying build/lib/Xlib/keysymdef/latin1.py -> build/bdist.linux-x86_64/wheel/./Xlib/keysymdef 2025-10-13 06:38:57,512 root INFO copying build/lib/Xlib/keysymdef/apl.py -> build/bdist.linux-x86_64/wheel/./Xlib/keysymdef 2025-10-13 06:38:57,512 root INFO copying build/lib/Xlib/keysymdef/special.py -> build/bdist.linux-x86_64/wheel/./Xlib/keysymdef 2025-10-13 06:38:57,512 root INFO copying build/lib/Xlib/keysymdef/cyrillic.py -> build/bdist.linux-x86_64/wheel/./Xlib/keysymdef 2025-10-13 06:38:57,512 root INFO copying build/lib/Xlib/keysymdef/xf86.py -> build/bdist.linux-x86_64/wheel/./Xlib/keysymdef 2025-10-13 06:38:57,512 root INFO copying build/lib/Xlib/keysymdef/latin2.py -> build/bdist.linux-x86_64/wheel/./Xlib/keysymdef 2025-10-13 06:38:57,512 root INFO copying build/lib/Xlib/keysymdef/latin4.py -> build/bdist.linux-x86_64/wheel/./Xlib/keysymdef 2025-10-13 06:38:57,512 root INFO copying build/lib/Xlib/keysymdef/katakana.py -> build/bdist.linux-x86_64/wheel/./Xlib/keysymdef 2025-10-13 06:38:57,512 root INFO copying build/lib/Xlib/keysymdef/xkb.py -> build/bdist.linux-x86_64/wheel/./Xlib/keysymdef 2025-10-13 06:38:57,512 root INFO copying build/lib/Xlib/keysymdef/xk3270.py -> build/bdist.linux-x86_64/wheel/./Xlib/keysymdef 2025-10-13 06:38:57,512 root INFO copying build/lib/Xlib/keysymdef/miscellany.py -> build/bdist.linux-x86_64/wheel/./Xlib/keysymdef 2025-10-13 06:38:57,512 root INFO copying build/lib/Xlib/keysymdef/latin3.py -> build/bdist.linux-x86_64/wheel/./Xlib/keysymdef 2025-10-13 06:38:57,512 root INFO copying build/lib/Xlib/keysymdef/hebrew.py -> build/bdist.linux-x86_64/wheel/./Xlib/keysymdef 2025-10-13 06:38:57,512 root INFO copying build/lib/Xlib/keysymdef/technical.py -> build/bdist.linux-x86_64/wheel/./Xlib/keysymdef 2025-10-13 06:38:57,512 root INFO copying build/lib/Xlib/keysymdef/korean.py -> build/bdist.linux-x86_64/wheel/./Xlib/keysymdef 2025-10-13 06:38:57,512 root INFO copying build/lib/Xlib/keysymdef/__init__.py -> build/bdist.linux-x86_64/wheel/./Xlib/keysymdef 2025-10-13 06:38:57,512 root INFO copying build/lib/Xlib/keysymdef/thai.py -> build/bdist.linux-x86_64/wheel/./Xlib/keysymdef 2025-10-13 06:38:57,512 root INFO copying build/lib/Xlib/keysymdef/greek.py -> build/bdist.linux-x86_64/wheel/./Xlib/keysymdef 2025-10-13 06:38:57,512 root INFO copying build/lib/Xlib/keysymdef/publishing.py -> build/bdist.linux-x86_64/wheel/./Xlib/keysymdef 2025-10-13 06:38:57,513 root INFO copying build/lib/Xlib/Xcursorfont.py -> build/bdist.linux-x86_64/wheel/./Xlib 2025-10-13 06:38:57,513 root INFO copying build/lib/Xlib/__init__.py -> build/bdist.linux-x86_64/wheel/./Xlib 2025-10-13 06:38:57,513 root INFO copying build/lib/Xlib/xauth.py -> build/bdist.linux-x86_64/wheel/./Xlib 2025-10-13 06:38:57,513 root INFO running install_egg_info 2025-10-13 06:38:57,514 root INFO running egg_info 2025-10-13 06:38:57,516 root INFO writing python_xlib.egg-info/PKG-INFO 2025-10-13 06:38:57,516 root INFO writing dependency_links to python_xlib.egg-info/dependency_links.txt 2025-10-13 06:38:57,516 root INFO writing requirements to python_xlib.egg-info/requires.txt 2025-10-13 06:38:57,516 root INFO writing top-level names to python_xlib.egg-info/top_level.txt ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any 2025-10-13 06:38:57,524 root INFO reading manifest file 'python_xlib.egg-info/SOURCES.txt' 2025-10-13 06:38:57,525 root INFO adding license file 'LICENSE' 2025-10-13 06:38:57,526 root INFO writing manifest file 'python_xlib.egg-info/SOURCES.txt' 2025-10-13 06:38:57,526 root INFO Copying python_xlib.egg-info to build/bdist.linux-x86_64/wheel/./python_xlib-0.33-py3.12.egg-info 2025-10-13 06:38:57,527 root INFO running install_scripts 2025-10-13 06:38:57,527 root INFO creating build/bdist.linux-x86_64/wheel/python_xlib-0.33.dist-info/WHEEL 2025-10-13 06:38:57,527 wheel INFO creating '/home/udu/aports/community/py3-xlib/src/python-xlib-0.33/.dist/.tmp-dyul81x3/python_xlib-0.33-py2.py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it 2025-10-13 06:38:57,528 wheel INFO adding 'Xlib/X.py' 2025-10-13 06:38:57,528 wheel INFO adding 'Xlib/XK.py' 2025-10-13 06:38:57,528 wheel INFO adding 'Xlib/Xatom.py' 2025-10-13 06:38:57,528 wheel INFO adding 'Xlib/Xcursorfont.py' 2025-10-13 06:38:57,528 wheel INFO adding 'Xlib/Xutil.py' 2025-10-13 06:38:57,528 wheel INFO adding 'Xlib/__init__.py' 2025-10-13 06:38:57,528 wheel INFO adding 'Xlib/display.py' 2025-10-13 06:38:57,528 wheel INFO adding 'Xlib/error.py' 2025-10-13 06:38:57,528 wheel INFO adding 'Xlib/rdb.py' 2025-10-13 06:38:57,528 wheel INFO adding 'Xlib/threaded.py' 2025-10-13 06:38:57,528 wheel INFO adding 'Xlib/xauth.py' 2025-10-13 06:38:57,529 wheel INFO adding 'Xlib/ext/__init__.py' 2025-10-13 06:38:57,529 wheel INFO adding 'Xlib/ext/composite.py' 2025-10-13 06:38:57,529 wheel INFO adding 'Xlib/ext/damage.py' 2025-10-13 06:38:57,529 wheel INFO adding 'Xlib/ext/dpms.py' 2025-10-13 06:38:57,529 wheel INFO adding 'Xlib/ext/ge.py' 2025-10-13 06:38:57,529 wheel INFO adding 'Xlib/ext/nvcontrol.py' 2025-10-13 06:38:57,529 wheel INFO adding 'Xlib/ext/randr.py' 2025-10-13 06:38:57,529 wheel INFO adding 'Xlib/ext/record.py' 2025-10-13 06:38:57,529 wheel INFO adding 'Xlib/ext/res.py' 2025-10-13 06:38:57,530 wheel INFO adding 'Xlib/ext/screensaver.py' 2025-10-13 06:38:57,530 wheel INFO adding 'Xlib/ext/security.py' 2025-10-13 06:38:57,530 wheel INFO adding 'Xlib/ext/shape.py' 2025-10-13 06:38:57,530 wheel INFO adding 'Xlib/ext/xfixes.py' 2025-10-13 06:38:57,530 wheel INFO adding 'Xlib/ext/xinerama.py' 2025-10-13 06:38:57,530 wheel INFO adding 'Xlib/ext/xinput.py' 2025-10-13 06:38:57,530 wheel INFO adding 'Xlib/ext/xtest.py' 2025-10-13 06:38:57,530 wheel INFO adding 'Xlib/keysymdef/__init__.py' 2025-10-13 06:38:57,530 wheel INFO adding 'Xlib/keysymdef/apl.py' 2025-10-13 06:38:57,530 wheel INFO adding 'Xlib/keysymdef/arabic.py' 2025-10-13 06:38:57,530 wheel INFO adding 'Xlib/keysymdef/cyrillic.py' 2025-10-13 06:38:57,530 wheel INFO adding 'Xlib/keysymdef/greek.py' 2025-10-13 06:38:57,530 wheel INFO adding 'Xlib/keysymdef/hebrew.py' 2025-10-13 06:38:57,530 wheel INFO adding 'Xlib/keysymdef/katakana.py' 2025-10-13 06:38:57,530 wheel INFO adding 'Xlib/keysymdef/korean.py' 2025-10-13 06:38:57,531 wheel INFO adding 'Xlib/keysymdef/latin1.py' 2025-10-13 06:38:57,531 wheel INFO adding 'Xlib/keysymdef/latin2.py' 2025-10-13 06:38:57,531 wheel INFO adding 'Xlib/keysymdef/latin3.py' 2025-10-13 06:38:57,531 wheel INFO adding 'Xlib/keysymdef/latin4.py' 2025-10-13 06:38:57,531 wheel INFO adding 'Xlib/keysymdef/miscellany.py' 2025-10-13 06:38:57,531 wheel INFO adding 'Xlib/keysymdef/publishing.py' 2025-10-13 06:38:57,531 wheel INFO adding 'Xlib/keysymdef/special.py' 2025-10-13 06:38:57,531 wheel INFO adding 'Xlib/keysymdef/technical.py' 2025-10-13 06:38:57,531 wheel INFO adding 'Xlib/keysymdef/thai.py' 2025-10-13 06:38:57,531 wheel INFO adding 'Xlib/keysymdef/xf86.py' 2025-10-13 06:38:57,531 wheel INFO adding 'Xlib/keysymdef/xk3270.py' 2025-10-13 06:38:57,531 wheel INFO adding 'Xlib/keysymdef/xkb.py' 2025-10-13 06:38:57,531 wheel INFO adding 'Xlib/protocol/__init__.py' 2025-10-13 06:38:57,531 wheel INFO adding 'Xlib/protocol/display.py' 2025-10-13 06:38:57,531 wheel INFO adding 'Xlib/protocol/event.py' 2025-10-13 06:38:57,532 wheel INFO adding 'Xlib/protocol/request.py' 2025-10-13 06:38:57,532 wheel INFO adding 'Xlib/protocol/rq.py' 2025-10-13 06:38:57,532 wheel INFO adding 'Xlib/protocol/structs.py' 2025-10-13 06:38:57,532 wheel INFO adding 'Xlib/support/__init__.py' 2025-10-13 06:38:57,532 wheel INFO adding 'Xlib/support/connect.py' 2025-10-13 06:38:57,532 wheel INFO adding 'Xlib/support/lock.py' 2025-10-13 06:38:57,532 wheel INFO adding 'Xlib/support/unix_connect.py' 2025-10-13 06:38:57,532 wheel INFO adding 'Xlib/support/vms_connect.py' 2025-10-13 06:38:57,532 wheel INFO adding 'Xlib/xobject/__init__.py' 2025-10-13 06:38:57,532 wheel INFO adding 'Xlib/xobject/colormap.py' 2025-10-13 06:38:57,532 wheel INFO adding 'Xlib/xobject/cursor.py' 2025-10-13 06:38:57,532 wheel INFO adding 'Xlib/xobject/drawable.py' 2025-10-13 06:38:57,532 wheel INFO adding 'Xlib/xobject/fontable.py' 2025-10-13 06:38:57,533 wheel INFO adding 'Xlib/xobject/icccm.py' 2025-10-13 06:38:57,533 wheel INFO adding 'Xlib/xobject/resource.py' 2025-10-13 06:38:57,533 wheel INFO adding 'python_xlib-0.33.dist-info/licenses/LICENSE' 2025-10-13 06:38:57,533 wheel INFO adding 'python_xlib-0.33.dist-info/METADATA' 2025-10-13 06:38:57,533 wheel INFO adding 'python_xlib-0.33.dist-info/WHEEL' 2025-10-13 06:38:57,533 wheel INFO adding 'python_xlib-0.33.dist-info/top_level.txt' 2025-10-13 06:38:57,533 wheel INFO adding 'python_xlib-0.33.dist-info/RECORD' 2025-10-13 06:38:57,533 root INFO removing build/bdist.linux-x86_64/wheel 2025-10-13 06:38:57,534 gpep517 INFO The backend produced .dist/python_xlib-0.33-py2.py3-none-any.whl python_xlib-0.33-py2.py3-none-any.whl ============================================================================================================================================ test session starts ============================================================================================================================================= platform linux -- Python 3.12.11, pytest-8.3.5, pluggy-1.5.0 rootdir: /home/udu/aports/community/py3-xlib/src/python-xlib-0.33 collected 924 items test/test_bytesview.py . [ 0%] test/test_events_be.py ssssssssssssssssssssssssssssssssssssssssssssssss [ 5%] test/test_events_le.py ................................................ [ 10%] test/test_manual.py ....... [ 11%] test/test_rdb.py .. [ 11%] test/test_requests_be.py sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 40%] sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 50%] test/test_requests_le.py ............................................................................................................................................................................................................................................................................. [ 79%] ......................................................................................... [ 88%] test/test_struct.py ............................................................ [ 95%] test/test_unix_connect.py .. [ 95%] test/test_xlib_display.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [100%] ================================================================================================================================================== FAILURES ================================================================================================================================================== ________________________________________________________________________________________________________________________________ TestXlibDisplay.test_can_add_extension_error ________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError ___________________________________________________________________________________________________________________________________ TestXlibDisplay.test_can_close_display ___________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError _________________________________________________________________________________________________________________________ TestXlibDisplay.test_can_close_display_and_check_for_error _________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError ______________________________________________________________________________________________________________________________ TestXlibDisplay.test_can_create_resource_object _______________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError __________________________________________________________________________________________________________________________ TestXlibDisplay.test_cannot_add_existing_display_method ___________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError ____________________________________________________________________________________________________________________________ TestXlibDisplay.test_cannot_add_existing_font_method ____________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError ________________________________________________________________________________________________________________________________ TestXlibDisplay.test_change_keyboard_mapping ________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError _________________________________________________________________________________________________________________________________ TestXlibDisplay.test_default_display_name __________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError _________________________________________________________________________________________________________________________________ TestXlibDisplay.test_default_screen_count __________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError _________________________________________________________________________________________________________________________________ TestXlibDisplay.test_default_screen_number _________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError ___________________________________________________________________________________________________________________________________ TestXlibDisplay.test_display_instance ____________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError _____________________________________________________________________________________________________________________________________ TestXlibDisplay.test_get_atom_name _____________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError ______________________________________________________________________________________________________________________________ TestXlibDisplay.test_get_default_screen_instance ______________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError _____________________________________________________________________________________________________________________________________ TestXlibDisplay.test_get_font_path _____________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError ____________________________________________________________________________________________________________________________________ TestXlibDisplay.test_get_input_focus ____________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError _________________________________________________________________________________________________________________________________ TestXlibDisplay.test_get_keyboard_control __________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError _________________________________________________________________________________________________________________________________ TestXlibDisplay.test_get_modifier_mapping __________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError ____________________________________________________________________________________________________________________________________ TestXlibDisplay.test_get_screensaver ____________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError __________________________________________________________________________________________________________________________________ TestXlibDisplay.test_get_selection_owner __________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError _______________________________________________________________________________________________________________________________ TestXlibDisplay.test_get_zero_screen_instance ________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError _______________________________________________________________________________________________________________________________ TestXlibDisplay.test_has_no_invalid_extension ________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError __________________________________________________________________________________________________________________________________ TestXlibDisplay.test_has_valid_extension __________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError ______________________________________________________________________________________________________________________________________ TestXlibDisplay.test_intern_atom ______________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError __________________________________________________________________________________________________________________________ TestXlibDisplay.test_keycode_to_keysym_for_invalid_index __________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError ____________________________________________________________________________________________________________________________ TestXlibDisplay.test_keysym_to_keycode_for_nosymbol _____________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError __________________________________________________________________________________________________________________________ TestXlibDisplay.test_keysym_to_keycode_for_valid_symbol ___________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError ____________________________________________________________________________________________________________________________ TestXlibDisplay.test_keysym_to_keycodes_for_nosymbol ____________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError ______________________________________________________________________________________________________________________________________ TestXlibDisplay.test_list_fonts _______________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError ______________________________________________________________________________________________________________________________________ TestXlibDisplay.test_list_hosts _______________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError _________________________________________________________________________________________________________________________________ TestXlibDisplay.test_lookup_invalid_keysym _________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError __________________________________________________________________________________________________________________________________ TestXlibDisplay.test_lookup_valid_keysym __________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError ___________________________________________________________________________________________________________________________________ TestXlibDisplay.test_open_invalid_font ___________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError ________________________________________________________________________________________________________________________________ TestXlibDisplay.test_pointer_mapping_is_list ________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError _____________________________________________________________________________________________________________________________________ TestXlibDisplay.test_query_keymap ______________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError _____________________________________________________________________________________________________________________________________ TestXlibDisplay.test_rebind_string _____________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError ________________________________________________________________________________________________________________________ TestXlibDisplay.test_refresh_keyboard_mapping_invalid_event _________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError _____________________________________________________________________________________________________________________________________ TestXlibDisplay.test_return_fileno _____________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError ___________________________________________________________________________________________________________________________________ TestXlibDisplay.test_returns_no_events ___________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError ________________________________________________________________________________________________________________________________ TestXlibDisplay.test_set_get_pointer_mapping ________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError _________________________________________________________________________________________________________________________________ TestXlibDisplay.test_set_modifier_mapping __________________________________________________________________________________________________________________________________ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: > s = _get_unix_socket(address) Xlib/support/unix_connect.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = '\x00/tmp/.X11-unix/X109' def _get_unix_socket(address): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.connect(address) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:82: ConnectionRefusedError During handling of the above exception, another exception occurred: dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. > s = _get_tcp_socket(host, dno) Xlib/support/unix_connect.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '', dno = 109 def _get_tcp_socket(host, dno): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, 6000 + dno)) E ConnectionRefusedError: [Errno 111] Connection refused Xlib/support/unix_connect.py:76: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def setUp(self): # Create authority file. self.display_num = os.getenv("DISPLAY") > self.display = Xlib.display.Display(self.display_num) test/test_xlib_display.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Xlib/display.py:89: in __init__ self.display = _BaseDisplay(display) Xlib/display.py:71: in __init__ protocol_display.Display.__init__(self, *args, **keys) Xlib/protocol/display.py:89: in __init__ self.socket = connect.get_socket(name, protocol, host, displayno) Xlib/support/connect.py:87: in get_socket return mod.get_socket(dname, protocol, host, dno) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dname = ':109', protocol = None, host = '', dno = 109 def get_socket(dname, protocol, host, dno): assert protocol in SUPPORTED_PROTOCOLS try: # Darwin funky socket. if protocol == 'darwin': s = _get_unix_socket(dname) # TCP socket, note the special case: `unix:0.0` is equivalent to `:0.0`. elif (protocol is None or protocol != 'unix') and host and host != 'unix': s = _get_tcp_socket(host, dno) # Unix socket. else: address = '/tmp/.X11-unix/X%d' % dno if not os.path.exists(address): # Use abstract address. address = '\0' + address try: s = _get_unix_socket(address) except socket.error: if not protocol and not host: # If no protocol/host was specified, fallback to TCP. s = _get_tcp_socket(host, dno) else: raise except socket.error as val: > raise error.DisplayConnectionError(dname, str(val)) E Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused Xlib/support/unix_connect.py:112: DisplayConnectionError ========================================================================================================================================== short test summary info =========================================================================================================================================== FAILED test/test_xlib_display.py::TestXlibDisplay::test_can_add_extension_error - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_can_close_display - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_can_close_display_and_check_for_error - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_can_create_resource_object - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_cannot_add_existing_display_method - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_cannot_add_existing_font_method - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_change_keyboard_mapping - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_default_display_name - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_default_screen_count - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_default_screen_number - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_display_instance - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_get_atom_name - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_get_default_screen_instance - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_get_font_path - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_get_input_focus - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_get_keyboard_control - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_get_modifier_mapping - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_get_screensaver - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_get_selection_owner - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_get_zero_screen_instance - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_has_no_invalid_extension - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_has_valid_extension - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_intern_atom - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_keycode_to_keysym_for_invalid_index - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_keysym_to_keycode_for_nosymbol - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_keysym_to_keycode_for_valid_symbol - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_keysym_to_keycodes_for_nosymbol - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_list_fonts - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_list_hosts - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_lookup_invalid_keysym - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_lookup_valid_keysym - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_open_invalid_font - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_pointer_mapping_is_list - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_query_keymap - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_rebind_string - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_refresh_keyboard_mapping_invalid_event - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_return_fileno - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_returns_no_events - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_set_get_pointer_mapping - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused FAILED test/test_xlib_display.py::TestXlibDisplay::test_set_modifier_mapping - Xlib.error.DisplayConnectionError: Can't connect to display ":109": [Errno 111] Connection refused ================================================================================================================================ 40 failed, 478 passed, 406 skipped in 1.57s ================================================================================================================================= >>> ERROR: py3-xlib: check failed >>> py3-xlib: Uninstalling dependencies... (1/76) Purging .makedepends-py3-xlib (20251013.063855) (2/76) Purging py3-six-pyc (1.17.0-r0) (3/76) Purging py3-six (1.17.0-r0) (4/76) Purging py3-gpep517-pyc (19-r0) (5/76) Purging py3-gpep517 (19-r0) (6/76) Purging py3-installer-pyc (0.7.0-r2) (7/76) Purging py3-installer (0.7.0-r2) (8/76) Purging py3-setuptools_scm-pyc (8.3.1-r0) (9/76) Purging py3-setuptools_scm (8.3.1-r0) (10/76) Purging py3-setuptools-pyc (80.9.0-r0) (11/76) Purging py3-setuptools (80.9.0-r0) (12/76) Purging py3-wheel-pyc (0.46.1-r0) (13/76) Purging py3-wheel (0.46.1-r0) (14/76) Purging py3-mock-pyc (5.2.0-r0) (15/76) Purging py3-mock (5.2.0-r0) (16/76) Purging py3-pytest-pyc (8.3.5-r0) (17/76) Purging py3-pytest (8.3.5-r0) (18/76) Purging py3-iniconfig-pyc (2.1.0-r0) (19/76) Purging py3-iniconfig (2.1.0-r0) (20/76) Purging py3-packaging-pyc (25.0-r0) (21/76) Purging py3-packaging (25.0-r0) (22/76) Purging py3-parsing-pyc (3.2.3-r0) (23/76) Purging py3-parsing (3.2.3-r0) (24/76) Purging py3-pluggy-pyc (1.5.0-r0) (25/76) Purging py3-pluggy (1.5.0-r0) (26/76) Purging py3-py-pyc (1.11.0-r4) (27/76) Purging py3-py (1.11.0-r4) (28/76) Purging xvfb-run (1.20.10.3-r2) (29/76) Purging xauth (1.1.3-r0) (30/76) Purging xvfb (21.1.18-r0) (31/76) Purging font-cursor-misc (1.0.4-r1) (32/76) Purging font-misc-misc (1.1.3-r1) (33/76) Purging encodings (1.0.7-r1) (34/76) Purging font-alias (1.0.5-r0) (35/76) Purging mkfontscale (1.2.3-r1) (36/76) Purging fontconfig (2.15.0-r3) (37/76) Purging util-macros (1.20.1-r0) (38/76) Purging mesa-egl (25.1.9-r0) (39/76) Purging xkbcomp (1.4.7-r0) (40/76) Purging xkeyboard-config (2.43-r0) (41/76) Purging xorg-server-common (21.1.18-r0) (42/76) Purging mcookie (2.41-r9) (43/76) Purging coreutils-fmt (9.7-r1) (44/76) Purging libxfont2 (2.0.7-r0) (45/76) Purging libxkbfile (1.1.3-r0) (46/76) Purging libxmu (1.2.1-r0) (47/76) Purging libxt (1.3.1-r0) (48/76) Purging mesa-gbm (25.1.9-r0) (49/76) Purging mesa-gl (25.1.9-r0) (50/76) Purging nettle (3.10.1-r0) (51/76) Purging pixman (0.46.4-r0) (52/76) Purging wayland-libs-client (1.23.1-r3) (53/76) Purging freetype (2.13.3-r0) (54/76) Purging mesa (25.1.9-r0) (55/76) Purging libdrm (2.4.124-r0) (56/76) Purging libpciaccess (0.18.1-r0) (57/76) Purging hwdata-pci (0.395-r0) (58/76) Purging libxxf86vm (1.1.6-r0) (59/76) Purging libxext (1.3.6-r2) (60/76) Purging libx11 (1.8.11-r0) (61/76) Purging libxcb (1.17.0-r0) (62/76) Purging libxdmcp (1.1.5-r1) (63/76) Purging libbsd (0.12.2-r0) (64/76) Purging libelf (0.193-r0) (65/76) Purging libfontenc (1.1.8-r0) (66/76) Purging libsm (1.2.5-r0) (67/76) Purging libice (1.1.2-r0) (68/76) Purging libmd (1.1.0-r0) (69/76) Purging libpng (1.6.47-r0) (70/76) Purging libuuid (2.41-r9) (71/76) Purging libxau (1.0.12-r0) (72/76) Purging llvm20-libs (20.1.8-r0) (73/76) Purging libxml2 (2.13.9-r0) (74/76) Purging libxshmfence (1.3.3-r0) (75/76) Purging spirv-tools (1.4.313.0-r0) (76/76) Purging wayland-libs-server (1.23.1-r3) Executing busybox-1.37.0-r19.trigger OK: 296 MiB in 89 packages