(suffix=None, prefix=None, dir=None)
| 61 | |
| 62 | |
| 63 | def _mkdtemp(suffix=None, prefix=None, dir=None): |
| 64 | if _system == 'Windows' and os.environ.get("GITHUB_ACTIONS"): |
| 65 | # Due to mitigations introduced in python/cpython#118486 |
| 66 | # when Python runs in a session created via an SSH connection |
| 67 | # tempfile.mkdtemp creates directories that are not accessible. |
| 68 | return _world_readable_mkdtemp(suffix, prefix, dir) |
| 69 | else: |
| 70 | return tempfile.mkdtemp(suffix, prefix, dir) |
| 71 | |
| 72 | |
| 73 | class ClusterError(Exception): |
no test coverage detected
searching dependent graphs…