Fix TSA #2816216: suppress Flawfinder false positive on Cython DIGIT_PAIRS_8 memcpy #2028
+11
−1
Azure Pipelines / debugpy-test
succeeded
May 29, 2026 in 23m 1s
Build #20260528.12 had test failures
Details
- Failed: 1 (0.00%)
- Passed: 23,283 (82.98%)
- Other: 4,773 (17.01%)
- Total: 28,057
Annotations
Check failure on line 1 in test_thread_count[program-launch-1]
azure-pipelines / debugpy-test
test_thread_count[program-launch-1]
assert 2 == 1
+ where 2 = len([{\n "id": 1,\n "name": "MainThread"\n}, {\n "id": 2,\n "name": "Dummy-6"\n}])
Raw output
pyfile = <function pyfile.<locals>.factory at 0x000001B476B99FC0>
target = <class 'tests.debug.targets.Program'>, run = launch, count = 1
@pytest.mark.parametrize("count", [1, 3])
def test_thread_count(pyfile, target, run, count):
@pyfile
def code_to_debug():
import debuggee
import threading
import time
import sys
debuggee.setup()
stop = False # noqa: F841
def worker(tid, offset):
i = 0
global stop
while not stop:
time.sleep(0.01)
i += 1
threads = []
if sys.argv[1] != "1":
for i in [111, 222]:
thread = threading.Thread(target=worker, args=(i, len(threads)))
threads.append(thread)
thread.start()
print("check here") # @bp
stop = True # noqa: F841
with debug.Session() as session:
with run(session, target(code_to_debug, args=[str(count)])):
session.set_breakpoints(code_to_debug, all)
session.wait_for_stop()
threads = session.request("threads")
> assert len(threads["threads"]) == count
E assert 2 == 1
E + where 2 = len([{\n "id": 1,\n "name": "MainThread"\n}, {\n "id": 2,\n "name": "Dummy-6"\n}])
tests\debugpy\test_threads.py:46: AssertionError
Loading