summaryrefslogtreecommitdiff
path: root/tests/sphinx/test_github_links.py
diff options
context:
space:
mode:
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"})