mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
PY-53355 Warning when running Django tests: The extra_tests argument is deprecated
Remove the 'extra_tests' argument if a Django version >= 4.0 Merge-request: IJ-MR-120964 Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com> GitOrigin-RevId: d9274d828827112a01fd04d0ea62f4df945772af
This commit is contained in:
committed by
intellij-monorepo-bot
parent
59efbed92f
commit
4e46197503
@@ -79,6 +79,8 @@ except ImportError:
|
||||
def __init__(self, stream=sys.stdout, **options):
|
||||
TeamcityTestRunner.__init__(self, stream)
|
||||
|
||||
IS_EXTRA_TESTS_ARG_DEPRECATED = True if VERSION >= (4, ) else False
|
||||
|
||||
|
||||
def strclass(cls):
|
||||
if not cls.__name__:
|
||||
@@ -151,9 +153,11 @@ class DjangoTeamcityTestRunner(BaseRunner):
|
||||
return TeamcityTestRunner.run(self, suite, **self.options)
|
||||
|
||||
def run_tests(self, test_labels, extra_tests=None, **kwargs):
|
||||
args = (test_labels, ) if IS_EXTRA_TESTS_ARG_DEPRECATED else (test_labels, extra_tests)
|
||||
|
||||
if is_nosetest(settings):
|
||||
return super(DjangoTeamcityTestRunner, self).run_tests(test_labels, extra_tests)
|
||||
return super(DjangoTeamcityTestRunner, self).run_tests(test_labels, extra_tests, **kwargs)
|
||||
return super(DjangoTeamcityTestRunner, self).run_tests(*args)
|
||||
return super(DjangoTeamcityTestRunner, self).run_tests(*args, **kwargs)
|
||||
|
||||
|
||||
def partition_suite(suite, classes, bins):
|
||||
|
||||
Reference in New Issue
Block a user