Show More
@@ -2995,6 +2995,12 b' class TestRunner(object):' | |||||
2995 | # we do the randomness ourself to know what seed is used |
|
2995 | # we do the randomness ourself to know what seed is used | |
2996 | os.environ['PYTHONHASHSEED'] = str(random.getrandbits(32)) |
|
2996 | os.environ['PYTHONHASHSEED'] = str(random.getrandbits(32)) | |
2997 |
|
2997 | |||
|
2998 | # Rayon (Rust crate for multi-threading) will use all logical CPU cores | |||
|
2999 | # by default, causing thrashing on high-cpu-count systems. | |||
|
3000 | # Setting its limit to 3 during tests should still let us uncover | |||
|
3001 | # multi-threading bugs while keeping the thrashing reasonable. | |||
|
3002 | os.environ.setdefault("RAYON_NUM_THREADS", "3") | |||
|
3003 | ||||
2998 | if self.options.tmpdir: |
|
3004 | if self.options.tmpdir: | |
2999 | self.options.keep_tmpdir = True |
|
3005 | self.options.keep_tmpdir = True | |
3000 | tmpdir = _sys2bytes(self.options.tmpdir) |
|
3006 | tmpdir = _sys2bytes(self.options.tmpdir) |
General Comments 0
You need to be logged in to leave comments.
Login now