]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
no-issue: remove unused import from test_graphlib.py (GH-29853)
authorAdrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Tue, 30 Nov 2021 02:27:37 +0000 (18:27 -0800)
committerGitHub <noreply@github.com>
Tue, 30 Nov 2021 02:27:37 +0000 (11:27 +0900)
Lib/test/test_graphlib.py

index 86246a62ed64220a79c4dd60bd54b9e056157b2b..5f38af4024c5b07f6191a3b146e449d546561f73 100644 (file)
@@ -1,4 +1,3 @@
-from itertools import chain
 import graphlib
 import os
 import unittest
@@ -34,7 +33,7 @@ class TestTopologicalSort(unittest.TestCase):
         try:
             ts.prepare()
         except graphlib.CycleError as e:
-            msg, seq = e.args
+            _, seq = e.args
             self.assertIn(" ".join(map(str, cycle)), " ".join(map(str, seq * 2)))
         else:
             raise