summaryrefslogtreecommitdiff
path: root/tests/sphinx/test_github_links.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2026-01-18 21:26:56 +0100
committerNatalia <124304+nessita@users.noreply.github.com>2026-02-24 20:36:09 -0300
commit090f1da56e663e9f840e307e73b5cf011cb7b061 (patch)
tree2283f72766c60c9462aa718fbe039ffdd3478ad3 /tests/sphinx/test_github_links.py
parent5f8b8e96a7a43d9e95c2deda3cf0c2855d976c64 (diff)
[6.0.x] Applied Black's 2026 stable style.
https://github.com/psf/black/releases/tag/26.1.0 Backport of 6cff02078799b7c683a0d39630d49ab4fe532e7c from main.
Diffstat (limited to 'tests/sphinx/test_github_links.py')
-rw-r--r--tests/sphinx/test_github_links.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/sphinx/test_github_links.py b/tests/sphinx/test_github_links.py
index c0ca43b092..db0447b628 100644
--- a/tests/sphinx/test_github_links.py
+++ b/tests/sphinx/test_github_links.py
@@ -31,8 +31,7 @@ class GitHubLinkTests(SimpleTestCase):
github_links = _github_links
def test_code_locator(self):
- locator = github_links.CodeLocator.from_code(
- """
+ locator = github_links.CodeLocator.from_code("""
from a import b, c
from .d import e, f as g
@@ -41,8 +40,7 @@ def h():
class I:
def j(self):
- pass"""
- )
+ pass""")
self.assertEqual(locator.node_line_numbers, {"h": 5, "I": 8, "I.j": 9})
self.assertEqual(locator.import_locations, {"b": "a", "c": "a", "e": ".d"})