mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-23 16:20:55 +07:00
PY-41674 Update bundled coverage and support two different versions for different interpreters
GitOrigin-RevId: 32d2417126aa751f2d6716837f89b14cc87442fa
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a97f42565a
commit
d7903a60e0
72
python/helpers/coveragepy_new/coverage/exceptions.py
Normal file
72
python/helpers/coveragepy_new/coverage/exceptions.py
Normal file
@@ -0,0 +1,72 @@
|
||||
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
|
||||
# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
|
||||
|
||||
"""Exceptions coverage.py can raise."""
|
||||
|
||||
|
||||
class _BaseCoverageException(Exception):
|
||||
"""The base-base of all Coverage exceptions."""
|
||||
pass
|
||||
|
||||
|
||||
class CoverageException(_BaseCoverageException):
|
||||
"""The base class of all exceptions raised by Coverage.py."""
|
||||
pass
|
||||
|
||||
|
||||
class ConfigError(_BaseCoverageException):
|
||||
"""A problem with a config file, or a value in one."""
|
||||
pass
|
||||
|
||||
|
||||
class DataError(CoverageException):
|
||||
"""An error in using a data file."""
|
||||
pass
|
||||
|
||||
class NoDataError(CoverageException):
|
||||
"""We didn't have data to work with."""
|
||||
pass
|
||||
|
||||
|
||||
class NoSource(CoverageException):
|
||||
"""We couldn't find the source for a module."""
|
||||
pass
|
||||
|
||||
|
||||
class NoCode(NoSource):
|
||||
"""We couldn't find any code at all."""
|
||||
pass
|
||||
|
||||
|
||||
class NotPython(CoverageException):
|
||||
"""A source file turned out not to be parsable Python."""
|
||||
pass
|
||||
|
||||
|
||||
class PluginError(CoverageException):
|
||||
"""A plugin misbehaved."""
|
||||
pass
|
||||
|
||||
|
||||
class _ExceptionDuringRun(CoverageException):
|
||||
"""An exception happened while running customer code.
|
||||
|
||||
Construct it with three arguments, the values from `sys.exc_info`.
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
class _StopEverything(_BaseCoverageException):
|
||||
"""An exception that means everything should stop.
|
||||
|
||||
The CoverageTest class converts these to SkipTest, so that when running
|
||||
tests, raising this exception will automatically skip the test.
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
class CoverageWarning(Warning):
|
||||
"""A warning from Coverage.py."""
|
||||
pass
|
||||
Reference in New Issue
Block a user