]> git.ipfire.org Git - thirdparty/iptables.git/commit
tests: iptables-test, xlate-test: use `os.unshare` Python function
authorJeremy Sowden <jeremy@azazel.net>
Wed, 4 Mar 2026 18:13:03 +0000 (18:13 +0000)
committerPhil Sutter <phil@nwl.cc>
Thu, 5 Mar 2026 10:53:57 +0000 (11:53 +0100)
commit4986dbaefd1c8b79de92f7d8ac2aea5de04b029e
tree6f8e22fbcff6a2b9ba223cf71ed84f208149f89c
parentafd52551c98871b8ac0321eed8efa0845956037c
tests: iptables-test, xlate-test: use `os.unshare` Python function

Since Python 3.12 the standard library has included an `os.unshare` function.
Use it if it is available.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables-test.py
xlate-test.py