You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print('✓ Auto-fixed: Replaced self.assertTrue( with self.assert_(')
69
+
70
+
# Verify the fix
71
+
with open(file_path, 'r', encoding='utf-8') as f:
72
+
verify_content = f.read()
73
+
if 'self.assertTrue(' in verify_content:
74
+
print('✗ ERROR: Auto-fix failed! File still contains self.assertTrue(')
75
+
exit(1)
76
+
else:
77
+
print('✓ Auto-fixed: Replaced self.assertTrue( with self.assert_(')
78
+
print('✓ Verified: File no longer contains self.assertTrue(')
56
79
else:
57
80
print('✓ Source file is correct (uses self.assert_())')
58
81
except Exception as e:
59
-
print(f'Error checking/fixing source: {e}')
82
+
print(f'ERROR in auto-fix: {e}')
83
+
import traceback
84
+
traceback.print_exc()
85
+
exit(1)
60
86
PYEOF
87
+
# Verify source file is fixed before installation
88
+
echo "=== Verifying source file after auto-fix ==="
89
+
python -c "with open('sentience/agent_runtime.py', 'r') as f: content = f.read(); assert 'self.assertTrue(' not in content, 'Source file still has self.assertTrue( after auto-fix!'; print('✓ Source file verified: uses self.assert_()')"
0 commit comments