Skip to content

Commit db304df

Browse files
committed
Add subTest() as an exception to the rule for wrapping style
1 parent 5c4b4eb commit db304df

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

CONTRIBUTING.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,18 @@ Line wrapping and indentation
116116
x=1,
117117
y=2)
118118

119-
The one exception to this rule are logging method invocations and calls to
120-
reject() and require()::
119+
The exception to this rule are logging method invocations, calls to
120+
reject(), require(), or uses of TestCase.subTest() ::
121121

122122
logger.info('Waiting up to %s seconds for %s queues to %s ...',
123123
timeout, len(queues), 'empty' if empty else 'not be empty')
124124

125125
reject(spline not in reticulated_splines,
126126
'Unreticulated splines cause discombobulation.')
127127

128+
with self.subTest('manifest', catalog=catalog, format=format,
129+
fetch=fetch, curl=curl, wait=wait):
130+
128131
Only if the second and subsequent arguments won't fit on one line, do we
129132
wrap all arguments, one line per argument.
130133

0 commit comments

Comments
 (0)