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

Commit67d0631

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 parente24f9b7 commit67d0631

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎git/objects/submodule/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
importlogging
44
importos
55
importstat
6-
7-
fromunittestimportSkipTest
86
importuuid
97

108
importgit
@@ -934,6 +932,7 @@ def remove(self, module: bool = True, force: bool = False,
934932
rmtree(str(wtd))
935933
exceptExceptionasex:
936934
ifHIDE_WINDOWS_KNOWN_ERRORS:
935+
fromunittestimportSkipTest
937936
raiseSkipTest("FIXME: fails with: PermissionError\n {}".format(ex))fromex
938937
raise
939938
# END delete tree if possible
@@ -945,6 +944,7 @@ def remove(self, module: bool = True, force: bool = False,
945944
rmtree(git_dir)
946945
exceptExceptionasex:
947946
ifHIDE_WINDOWS_KNOWN_ERRORS:
947+
fromunittestimportSkipTest
948948
raiseSkipTest(f"FIXME: fails with: PermissionError\n{ex}")fromex
949949
else:
950950
raise

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp