From be44602b633cfb49a472e192f235ba6de0055d38 Mon Sep 17 00:00:00 2001 From: Kostis Anagnostopoulos Date: Mon, 3 Oct 2016 12:25:09 +0200 Subject: hidden win-errs: Let leaking TCs run till end, then hide + Detect code breaking the body of TCs eventually hidden win-errors by raising SkipTest ALAP. + submodule.base.py: import classes from `git.objects` instead of `utils`. + had to ++ ulimit 100->110 for the extra code tested (more leaks :-) + Centralize is_win detection. --- git/test/performance/test_odb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git/test/performance/test_odb.py') diff --git a/git/test/performance/test_odb.py b/git/test/performance/test_odb.py index 99b550ac..6f07a615 100644 --- a/git/test/performance/test_odb.py +++ b/git/test/performance/test_odb.py @@ -5,7 +5,7 @@ import sys from time import time from unittest.case import skipIf -from git.compat import is_win, PY3 +from git.compat import PY3 from git.test.lib.helper import HIDE_WINDOWS_KNOWN_ERRORS from .lib import ( @@ -15,7 +15,7 @@ from .lib import ( class TestObjDBPerformance(TestBigRepoR): - @skipIf(HIDE_WINDOWS_KNOWN_ERRORS and is_win and PY3, + @skipIf(HIDE_WINDOWS_KNOWN_ERRORS and PY3, "FIXME: smmp fails with: TypeError: Can't convert 'bytes' object to str implicitly") def test_random_access(self): results = [["Iterate Commits"], ["Iterate Blobs"], ["Retrieve Blob Data"]] -- cgit v1.2.1