Skip to content

Commit c92f0c8

Browse files
committed
pySCG: add EXPECTED_TIMEOUT markers to CWE-390 files
Mark CWE-390 files with EXPECTED_TIMEOUT to skip timeout tests. These files intentionally contain infinite loops/blocking operations for educational purposes as documented in KNOWN_ISSUES.md. Signed-off-by: tommcd <[email protected]>
1 parent 493f4e6 commit c92f0c8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/Secure-Coding-Guide-for-Python/CWE-703/CWE-390/compliant01.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-FileCopyrightText: OpenSSF project contributors
22
# SPDX-License-Identifier: MIT
33
""" Compliant Code Example """
4+
# EXPECTED_TIMEOUT: intentional blocking operation for educational purposes
45
from time import sleep
56

67

docs/Secure-Coding-Guide-for-Python/CWE-703/CWE-390/noncompliant01.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-FileCopyrightText: OpenSSF project contributors
22
# SPDX-License-Identifier: MIT
33
""" Non-compliant Code Example """
4+
# EXPECTED_TIMEOUT: intentional infinite loop for educational purposes
45

56
from time import sleep
67

0 commit comments

Comments
 (0)