Skip to content

Commit 192a751

Browse files
committed
Very minor enhancement: sort list only after filtering.
1 parent 46e5518 commit 192a751

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_gil_scoped.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
def get_pybind11_internals_keys():
1111
keys = []
12-
for key in sorted(dir(builtins)):
12+
for key in dir(builtins):
1313
if key.startswith("__pybind11_internals_"):
1414
assert key.endswith("__")
1515
keys.append(key)
16-
return tuple(keys)
16+
return tuple(sorted(keys))
1717

1818

1919
def _run_in_process(target, *args, **kwargs):

0 commit comments

Comments
 (0)