Skip to content

Commit 77d4f44

Browse files
committed
Make ruff happy
1 parent c3a9f40 commit 77d4f44

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/test_inspect.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ def test_inspect_members(self):
2929
"",
3030
"",
3131
]
32-
pattern = r"(https://github.com/openjdk/jdk/blob/)" \
32+
pattern = (
33+
r"(https://github.com/openjdk/jdk/blob/)"
3334
"[^ ]*(/share/classes/java/lang/Iterable\.java)"
35+
)
3436
members_string = re.sub(pattern, r"\1...\2", "".join(members))
3537
assert members_string.split("\n") == expected

tests/test_introspect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def test_jsource_jdk_class(self):
9999
jv_digits = scyjava.jvm_version()
100100
jv = jv_digits[1] if jv_digits[0] == 1 else jv_digits[0]
101101
source = scyjava.jsource("java.util.List")
102-
assert source.startswith(f"https://github.com/openjdk/jdk/blob/")
102+
assert source.startswith("https://github.com/openjdk/jdk/blob/")
103103
assert source.endswith("/share/classes/java/util/List.java")
104104
assert str(jv) in source
105105

0 commit comments

Comments
 (0)