Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Replace unsafe 'timestamp.mktemp' with 'timestamp.{Named,}TemporaryFile' in systests #247

@tseaver

Description

@tseaver

Pydoc says:

Help on function mktemp in tempfile:

tempfile.mktemp = mktemp(suffix='', prefix='tmp', dir=None)
    User-callable function to return a unique temporary file name.  The
    file is not created.
    
    Arguments are as for mkstemp, except that the 'text' argument is
    not accepted.
    
    This function is unsafe and should not be used.  The file name
    refers to a file that did not exist at some point, but by the time
    you get around to creating it, someone else may have beaten you to
    the punch.

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the googleapis/python-storage API.testingtype: processA process-related concern. May include testing, release, or the like.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions