mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-19 12:57:58 +00:00
refactor:final production-ready audit; remove debug artifacts and non-ASCII characters
This commit is contained in:
parent
287b7e7250
commit
8cd30c3703
3 changed files with 14 additions and 16 deletions
|
|
@ -143,7 +143,7 @@ def _counting_check(candidate):
|
|||
try:
|
||||
src = inspect.getsource(_orig_check)
|
||||
except (TypeError, OSError):
|
||||
# Can't inspect — just run it
|
||||
# Can't inspect - just run it
|
||||
try:
|
||||
_orig_check(candidate)
|
||||
print("1/1")
|
||||
|
|
@ -155,12 +155,12 @@ def _counting_check(candidate):
|
|||
assert_lines = [l.strip() for l in src.split('\\n') if l.strip().startswith('assert')]
|
||||
_total = max(len(assert_lines), 1)
|
||||
|
||||
# Run the full check — if it passes, all assertions passed
|
||||
# Run the full check - if it passes, all assertions passed
|
||||
try:
|
||||
_orig_check(candidate)
|
||||
_passed = _total
|
||||
except AssertionError:
|
||||
# Some failed — try to count
|
||||
# Some failed - try to count
|
||||
_passed = 0
|
||||
for line in assert_lines:
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue