New submission from tlecarrour <tan...@bioneland.org>:

Dear Python Bugs Team,

Some tests fail when building Python 3.8 on Guix, for instance :

```
FAIL: test_shared_memory_SharedMemoryServer_ignores_sigint 
(test.test_multiprocessing_spawn.WithProcessesTestSharedMemory)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/tmp/guix-build-python-3.8.0.drv-0/Python-3.8.0/Lib/test/_test_multiprocessing.py",
 line 3824, in test_shared_memory_SharedMemoryServer_ignores_sigint
    os.kill(os.getpid(), signal.SIGINT)
AssertionError: KeyboardInterrupt not raised
```

This is because, on Guix, there is no TTY available during the build process.
A patch (cf attachment) has been added to the package definition [1], but it 
would make sense to have it integrated in Python.

[1]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=38208#14

It adds the following decorator to the failing tests:

```
@unittest.skipUnless(sys.stdin.isatty(), "KeyboardInterrupts require a TTY 
device")
```

Regards

----------
components: Tests
files: python-3.8-fix-tests.patch
keywords: patch
messages: 356959
nosy: tlecarrour
priority: normal
severity: normal
status: open
title: test_shared_memory_SharedMemoryServer_ignores_sigint and others fail on 
Guix
versions: Python 3.8
Added file: https://bugs.python.org/file48720/python-3.8-fix-tests.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38845>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to