[New-bugs-announce] [issue31132] test_prlimit from test_resource fails when building python3 inside systemd-nspawn environment

Charalampos Stratakis report at bugs.python.org
Mon Aug 7 12:43:22 EDT 2017


New submission from Charalampos Stratakis:

FAIL: test_prlimit (test.test_resource.ResourceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Python-3.6.2/Lib/test/support/__init__.py", line 556, in wrapper
    return func(*args, **kw)
  File "/builddir/build/BUILD/Python-3.6.2/Lib/test/test_resource.py", line 153, in test_prlimit
    1, resource.RLIMIT_AS)
AssertionError: PermissionError not raised by prlimit


I observed this issue when mock [0] the underlying build system we use in Fedora started using the systemd-nspawn container technology instead of chroot [1][2] in order to create a minimal build environment.

[0] https://github.com/rpm-software-management/mock
[1] https://github.com/rpm-software-management/mock/wiki/Release-Notes-1.4.1
[2] https://www.freedesktop.org/software/systemd/man/systemd-nspawn.html

----------
messages: 299852
nosy: cstratak
priority: normal
severity: normal
status: open
title: test_prlimit from test_resource fails when building python3 inside systemd-nspawn environment
versions: Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31132>
_______________________________________


More information about the New-bugs-announce mailing list