no-issue: remove unused import from test_graphlib.py (GH-29853)

This commit is contained in:
Adrian Garcia Badaracco 2021-11-29 18:27:37 -08:00 committed by GitHub
parent 734ed35383
commit bd9342ddde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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