Skip to content

Commit 7219d2c

Browse files
committed
Ruff format
1 parent 53534b1 commit 7219d2c

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

python/subunit/filter_scripts/subunit2junitxml.py

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
"""Filter a subunit stream to get aggregate statistics."""
1818

19-
2019
import sys
2120

2221
from testtools import StreamToExtendedDecorator

python/subunit/run.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
"""Run a unittest testcase reporting results as Subunit.
1919
20-
$ python -m subunit.run mylib.tests.test_suite
20+
$ python -m subunit.run mylib.tests.test_suite
2121
"""
2222

2323
import io

python/subunit/tests/test_output_filter.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -217,15 +217,15 @@ def test_file_is_sent_in_single_packet(self):
217217
)
218218

219219
def test_can_read_binary_files(self):
220-
with temp_file_contents(b"\xDE\xAD\xBE\xEF") as f:
220+
with temp_file_contents(b"\xde\xad\xbe\xef") as f:
221221
result = get_result_for([self.option, self.test_id, "--attach-file", f.name])
222222

223223
self.assertThat(
224224
result._events,
225225
MatchesListwise(
226226
[
227227
MatchesStatusCall(call="startTestRun"),
228-
MatchesStatusCall(file_bytes=b"\xDE\xAD\xBE\xEF", eof=True),
228+
MatchesStatusCall(file_bytes=b"\xde\xad\xbe\xef", eof=True),
229229
MatchesStatusCall(call="stopTestRun"),
230230
]
231231
),
@@ -247,15 +247,15 @@ def test_can_read_empty_files(self):
247247
)
248248

249249
def test_can_read_stdin(self):
250-
self.patch(_o.sys, "stdin", TextIOWrapper(BytesIO(b"\xFE\xED\xFA\xCE")))
250+
self.patch(_o.sys, "stdin", TextIOWrapper(BytesIO(b"\xfe\xed\xfa\xce")))
251251
result = get_result_for([self.option, self.test_id, "--attach-file", "-"])
252252

253253
self.assertThat(
254254
result._events,
255255
MatchesListwise(
256256
[
257257
MatchesStatusCall(call="startTestRun"),
258-
MatchesStatusCall(file_bytes=b"\xFE\xED\xFA\xCE", file_name="stdin", eof=True),
258+
MatchesStatusCall(file_bytes=b"\xfe\xed\xfa\xce", file_name="stdin", eof=True),
259259
MatchesStatusCall(call="stopTestRun"),
260260
]
261261
),

0 commit comments

Comments
 (0)