Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #14230
| Path | csiph.com!weretis.net!feeder8.news.weretis.net!usenet.goja.nl.eu.org!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Emmanuel Arias <eamanu@yaerobi.com> |
| Newsgroups | linux.debian.maint.python |
| Subject | Asking for help for python-xlib |
| Date | Fri, 08 Jul 2022 14:40:01 +0200 |
| Message-ID | <EGVr3-9Z8S-15@gated-at.bofh.it> (permalink) |
| X-Original-To | debian-python <debian-python@lists.debian.org> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Fri Jul 8 12:31:08 2022 |
| Old-Return-Path | <eamanu@yaerobi.com> |
| X-Amavis-Spam-Status | No, score=-9.49 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, BODY_8BITS=1.5, DIGITS_LETTERS=1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, PGPSIGNATURE=-5, RCVD_IN_DNSWL_NONE=-0.0001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .yaerobi. - helo: .mail-oa1-x31.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5 |
| X-Gm-Message-State | AJIora8msIQLonEWxbezwpkYucEX3X1CAwHcieT4pzVgZyUKaVvU5pz+ fUrILH5exk5bQIHFHdkw91+oVJH7g0/N7w== |
| X-Google-SMTP-Source | AGRyM1tYmktCKTC6N30J85AMxTsBaktmRRhjJ6T2DtHRWF1AAtC7qKDJ/IgEx7LZQerY+s6QGJD66g== |
| X-Received | by 2002:a05:6870:d298:b0:10b:95e3:3d5a with SMTP id d24-20020a056870d29800b0010b95e33d5amr1786418oae.50.1657283450186; Fri, 08 Jul 2022 05:30:50 -0700 (PDT) |
| MIME-Version | 1.0 |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 |
| Content-Language | en-US |
| Content-Type | multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------xhpwWhj4BIN0tk6y43685Yni" |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/20062 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/08318fbd-8829-3e08-f511-0c7495077d6b@yaerobi.com |
| Approved | robomod@news.nic.it |
| Lines | 161 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Fri, 8 Jul 2022 09:30:46 -0300 |
| X-Original-Message-ID | <08318fbd-8829-3e08-f511-0c7495077d6b@yaerobi.com> |
| Xref | csiph.com linux.debian.maint.python:14230 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
Hello everybody, I'm working on the new upstream release 0.31 and I'm looking for this bug [0]. But, I can not reproduce it. If I run in 0.29 and 0.31 the tests finish successfully, but in [1] fails in different archs. Could you reproduce it? Could you give me some advice/tips/clues about why I cannot reproduce it, please? Anyway I created this patch, because I suspect that for some reason, the self.display.flush() is raising the Exception before pytest can catch it, but I don't think that is possible. ``` From: Emmanuel Arias <eamanu@yaerobi.com> Date: Wed, 6 Jul 2022 18:10:50 -0300 Subject: Use context manager to avoid error in test. Use context manager in tests to avoid an error during the Build in Debian. Bug-Debian: https://bugs.debian.org/1006033 --- test/test_xlib_display.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test_xlib_display.py b/test/test_xlib_display.py index a41c53b..a2e31f3 100644 --- a/test/test_xlib_display.py +++ b/test/test_xlib_display.py @@ -52,8 +52,9 @@ class TestXlibDisplay(unittest.TestCase): self.assertEqual(str(self.display.display.socket_error), "Display connection closed by client") def test_can_close_display_and_check_for_error(self): - self.display.close() - self.assertRaises(Xlib.error.ConnectionClosedError, self.display.flush) + with self.assertRaises(Xlib.error.ConnectionClosedError): + self.display.close() + self.display.flush() def test_return_fileno(self): self.assertTrue(isinstance(self.display.fileno(), int)) ``` [0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1006033 [1] https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/python-xlib.html Thanks! Cheers, Emmanuel
Back to linux.debian.maint.python | Previous | Next | Find similar | Unroll thread
Asking for help for python-xlib Emmanuel Arias <eamanu@yaerobi.com> - 2022-07-08 14:40 +0200
csiph-web