PiperOrigin-RevId: 882767063
This commit is contained in:
Evgenii Kliuchnikov
2026-03-12 14:02:39 -07:00
committed by Copybara-Service
parent 0ed4268a44
commit 9e558dd5c2
3 changed files with 3 additions and 6 deletions

View File

@@ -147,4 +147,4 @@ def test_concurrency():
thread.start()
for thread in threads:
thread.join()
assert sorted(list(results.queue)) == [1, 2, 3, 4]
assert sorted(results.queue) == [1, 2, 3, 4]

View File

@@ -165,4 +165,4 @@ def test_concurrency():
thread.start()
for thread in threads:
thread.join()
assert sorted(list(results.queue)) == [1, 2, 3, 4]
assert sorted(results.queue) == [1, 2, 3, 4]

View File

@@ -75,10 +75,7 @@ class BuildExt(build_ext.build_ext):
LOGGER.debug("skipping '%s' extension (up-to-date)", ext.name)
return
c_sources = []
for source in ext.sources:
if source.endswith(".c"):
c_sources.append(source)
c_sources = [source for source in ext.sources if source.endswith(".c")]
extra_args = ext.extra_compile_args or []
objects = []