Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commite24f9b7

Browse files
wonder-miceByron
authored andcommitted
import unittest adds 0.250s to script launch time
This should not be imported at root level, since it adds a lot of initialization overhead without need.
1 parent35e302d commite24f9b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
importstat
2121
fromsysimportmaxsize
2222
importtime
23-
fromunittestimportSkipTest
2423
fromurllib.parseimporturlsplit,urlunsplit
2524
importwarnings
2625

@@ -130,6 +129,7 @@ def onerror(func: Callable, path: PathLike, exc_info: str) -> None:
130129
func(path)# Will scream if still not possible to delete.
131130
exceptExceptionasex:
132131
ifHIDE_WINDOWS_KNOWN_ERRORS:
132+
fromunittestimportSkipTest
133133
raiseSkipTest("FIXME: fails with: PermissionError\n {}".format(ex))fromex
134134
raise
135135

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp