File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -275,8 +275,8 @@ def test_duplicate_code_module_attribution() -> None:
275275 """
276276 path = join (DATA , "2368" )
277277 reporter = GenericTestReporter ()
278- # Pass files explicitly with the unrelated module last, so that
279- # current_name points to xmlgen when close() fires.
278+ # Pass files explicitly with the unrelated module last, so that current_name
279+ # points to a file without duplication when close() fires.
280280 Run (
281281 [
282282 join (path , "databaselib.py" ),
@@ -295,7 +295,7 @@ def test_duplicate_code_module_attribution() -> None:
295295 assert msg .symbol == "duplicate-code"
296296 # The message text contains "=={module_name}:[start:end]" for each
297297 # involved module. The message's own .module must be one of them,
298- # not the unrelated xmlgen module.
298+ # but not the unrelated module.
299299 involved = re .findall (r"==(\S+?):\[" , msg .msg )
300300 assert msg .module in involved , (
301301 f"R0801 attributed to { msg .module !r} which is not in "
You can’t perform that action at this time.
0 commit comments