[Python-checkins] no-issue: remove unused import from test_graphlib.py (GH-29853)

corona10 webhook-mailer at python.org
Mon Nov 29 21:27:46 EST 2021


https://github.com/python/cpython/commit/bd9342dddead5993500e7978edad7b5e6a0c1f26
commit: bd9342dddead5993500e7978edad7b5e6a0c1f26
branch: main
author: Adrian Garcia Badaracco <1755071+adriangb at users.noreply.github.com>
committer: corona10 <donghee.na92 at gmail.com>
date: 2021-11-30T11:27:37+09:00
summary:

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

files:
M Lib/test/test_graphlib.py

diff --git a/Lib/test/test_graphlib.py b/Lib/test/test_graphlib.py
index 86246a62ed642..5f38af4024c5b 100644
--- a/Lib/test/test_graphlib.py
+++ b/Lib/test/test_graphlib.py
@@ -1,4 +1,3 @@
-from itertools import chain
 import graphlib
 import os
 import unittest
@@ -34,7 +33,7 @@ def _assert_cycle(self, graph, cycle):
         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



More information about the Python-checkins mailing list