equal
deleted
inserted
replaced
2993 if 'PYTHONHASHSEED' not in os.environ: |
2993 if 'PYTHONHASHSEED' not in os.environ: |
2994 # use a random python hash seed all the time |
2994 # use a random python hash seed all the time |
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) |
3001 if os.path.exists(tmpdir): |
3007 if os.path.exists(tmpdir): |
3002 # Meaning of tmpdir has changed since 1.3: we used to create |
3008 # Meaning of tmpdir has changed since 1.3: we used to create |