Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f108976

Browse filesBrowse files
authored
[3.11] gh-111881: Use lazy import in test.support (#111885) (#111890) (#111902)
[3.12] gh-111881: Use lazy import in test.support (#111885) (#111890) gh-111881: Use lazy import in test.support (#111885) * Import lazily getpass in test.support Backport to 3.11: test.support.os_helper is unchanged. (cherry picked from commit 0372e3b) (cherry picked from commit e983ca8)
1 parent 63205e5 commit f108976
Copy full SHA for f108976

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎Lib/test/support/__init__.py

Copy file name to clipboardExpand all lines: Lib/test/support/__init__.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import contextlib
77
import dataclasses
88
import functools
9-
import getpass
109
import os
1110
import re
1211
import stat
@@ -380,6 +379,7 @@ def wrapper(*args, **kw):
380379

381380
def skip_if_buildbot(reason=None):
382381
"""Decorator raising SkipTest if running on a buildbot."""
382+
import getpass
383383
if not reason:
384384
reason = 'not suitable for buildbots'
385385
try:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.