projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use Black stable to format python code
[babeltrace.git]
/
tests
/
utils
/
python
/
tap
/
line.py
diff --git
a/tests/utils/python/tap/line.py
b/tests/utils/python/tap/line.py
index e0ed3581df21fb3e87c1647333954158625c05f7..31829582a1dc3b2856f99669af6449f516e5b8dd 100644
(file)
--- a/
tests/utils/python/tap/line.py
+++ b/
tests/utils/python/tap/line.py
@@
-8,6
+8,7
@@
class Line(object):
TAP is a line based protocol. Thus, the most primitive type is a line.
"""
TAP is a line based protocol. Thus, the most primitive type is a line.
"""
+
@property
def category(self):
raise NotImplementedError
@property
def category(self):
raise NotImplementedError
@@
-17,8
+18,8
@@
class Result(Line):
"""Information about an individual test line."""
def __init__(
"""Information about an individual test line."""
def __init__(
- self, ok, number=None, description='', directive=None,
-
diagnostics=None
):
+ self, ok, number=None, description='', directive=None, diagnostics=None
+ ):
self._ok = ok
if number:
self._number = int(number)
self._ok = ok
if number:
self._number = int(number)
@@
-82,7
+83,8
@@
class Result(Line):
if self.diagnostics is not None:
diagnostics = '\n' + self.diagnostics.rstrip()
return "{0}ok {1} - {2}{3}{4}".format(
if self.diagnostics is not None:
diagnostics = '\n' + self.diagnostics.rstrip()
return "{0}ok {1} - {2}{3}{4}".format(
- is_not, self.number, self.description, directive, diagnostics)
+ is_not, self.number, self.description, directive, diagnostics
+ )
class Plan(Line):
class Plan(Line):
@@
-173,6
+175,7
@@
class Unknown(Line):
This exists for the purpose of a Null Object pattern.
"""
This exists for the purpose of a Null Object pattern.
"""
+
@property
def category(self):
""":returns: ``unknown``"""
@property
def category(self):
""":returns: ``unknown``"""
This page took
0.024503 seconds
and
4
git commands to generate.