You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-admin/clustershell/files/clustershell-1.8.4-setrlimi...

22 lines
763 B

Python3.10 related fix taken from upstream [1,2].
[1] https://github.com/cea-hpc/clustershell/pull/487
[2] https://github.com/cea-hpc/clustershell/commit/5ac85daf74056ec7e60778efec94c746a150142c
diff --git a/tests/CLIConfigTest.py b/tests/CLIConfigTest.py
index 2853398..db6cec5 100644
--- a/tests/CLIConfigTest.py
+++ b/tests/CLIConfigTest.py
@@ -229,7 +229,7 @@ class CLIClushConfigTest(unittest.TestCase):
display = Display(options, config)
# force a lower soft limit
- resource.setrlimit(resource.RLIMIT_NOFILE, (hard2/2, hard))
+ resource.setrlimit(resource.RLIMIT_NOFILE, (hard2//2, hard))
# max_fdlimit should increase soft limit again
set_fdlimit(config.fd_max, display)
# verify
--
2.35.1