Skip to content

Commit 8e17c8a

Browse files
graingertpicnixz
andauthored
use indexing rather than unpacking one item
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 3b895f2 commit 8e17c8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_support.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def test_temp_dir__existing_dir__quiet_true(self):
267267

268268
self.assertListEqual(warnings, [])
269269
self.assertEqual(len(caplog.records), 1)
270-
record, = caplog.records
270+
record = caplog.records[0]
271271
self.assertStartsWith(
272272
record.getMessage(),
273273
f'tests may fail, unable to create '
@@ -340,7 +340,7 @@ def test_change_cwd__non_existent_dir__quiet_true(self):
340340

341341
self.assertListEqual(warnings, [])
342342
self.assertEqual(len(caplog.records), 1)
343-
record, = caplog.records
343+
record = caplog.records[0]
344344
self.assertStartsWith(
345345
record.getMessage(),
346346
f'tests may fail, unable to change '
@@ -360,7 +360,7 @@ def test_change_cwd__chdir_warning(self):
360360

361361
self.assertListEqual(messages, [])
362362
self.assertEqual(len(caplog.records), 1)
363-
record, = caplog.records
363+
record = caplog.records[0]
364364
self.assertStartsWith(
365365
record.getMessage(),
366366
f'tests may fail, unable to change '

0 commit comments

Comments
 (0)