From 5209b53e9689ce28dcd045f384633378d619718f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Wi=C5=9Bniewski?= Date: Thu, 5 Nov 2020 16:18:52 +0100 Subject: [PATCH] convert IFDRational to tuples in tests This fixes tests with Pillow version >= 7.2.0 --- tests/s_test.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/s_test.py b/tests/s_test.py index 5d105de..a7cad54 100644 --- a/tests/s_test.py +++ b/tests/s_test.py *************** *** 9,14 **** --- 9,15 ---- import time import unittest + import PIL from PIL import Image import piexif from piexif import _common, ImageIFD, ExifIFD, GPSIFD, TAGS, InvalidImageDataError *************** *** 580,585 **** --- 581,597 ---- # test utility methods---------------------------------------------- def _compare_value(self, v1, v2): + if isinstance(v2, PIL.TiffImagePlugin.IFDRational): + v2 = (v2.numerator, v2.denominator) + if isinstance(v2, tuple): + converted_v2 = [] + for el in v2: + if isinstance(el, PIL.TiffImagePlugin.IFDRational): + converted_v2.append((el.numerator, el.denominator)) + else: + converted_v2.append(el) + v2 = tuple(converted_v2) + if type(v1) != type(v2): if isinstance(v1, tuple): self.assertEqual(pack_byte(*v1), v2) '>diff
path: root/gnu/services/vnc.scm
AgeCommit message (Expand)Author
2023-05-21services: Transient inetd services inherit requirements....That way, per-connection transient services such as 'sshd-123' inherit dependencies of their "parent" ('sshd' in this example), which is more consistent than not depending on anything. * gnu/services/dict.scm (dicod-shepherd-service): Pass #:requirements to 'make-inetd-constructor'. * gnu/services/messaging.scm (bitlbee-shepherd-service): Likewise. * gnu/services/ssh.scm (openssh-shepherd-service): Likewise. * gnu/services/vnc.scm (xvnc-shepherd-service): Likewise. Ludovic Courtès
2023-04-02services: xvnc: Do not create a regular HOME directory for xvnc user....* gnu/services/vnc.scm (%xvnc-accounts) [home-directory]: Define as /var/empty. [shell]: Set to nologin, for good measures. Maxim Cournoyer
2022-10-07Revert "Revert "services: Add xvnc-service-type.""...This reverts commit 0c4966160054bc50e6ab3a4ac9c9a6a1826ab5a0. The fix appears in the subsequent commit, for clarity. Maxim Cournoyer
2022-10-07Revert "services: Add xvnc-service-type."...This reverts commit 1c528a95cb92b7808e6603d7956185005583629f. This broke 'guix pull', for (yet) unknown reasons. Maxim Cournoyer
2022-10-07services: Add xvnc-service-type....* gnu/services/vnc.scm: New file. * gnu/tests/vnc.scm: Likewise. * gnu/local.mk: Register them. Maxim Cournoyer