blob: 9ecd807591a87a7decb77467c4d1996b18f4b88f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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
|