Skip to content

Conversation

@BergLucas
Copy link
Collaborator

Hi,

In some cases, black is unable to format the generated code, causing an InvalidInput exception. In principle, it would be best to fix the problem when generating the tests, but I have not been able to reproduce or find the cause of this problem because it happens very rarely. Therefore, I think that the best solution is to catch the exception so that the module can at least be written.

@LuKrO2011
Copy link
Contributor

LGTM

@stephanlukasczyk stephanlukasczyk merged commit c7848d5 into se2p:main Nov 3, 2025
26 of 27 checks passed
@BergLucas BergLucas deleted the fix/format-with-black branch November 3, 2025 12:42
BergLucas pushed a commit to BergLucas/pynguin that referenced this pull request Nov 20, 2025
- Remove unnecessary log messages in case of test execution timeouts (cf. GitHub PR se2p#113)
- Remove unused exceptions, classes, and arguments (cf. GitHub PR se2p#114)
- Conditional coverage (cf. GitHub PR se2p#115, se2p#121)
- Prevent destructors from being explicitly called during test generation (cf. GitHub PR se2p#117)
- Add support for Python3.14 (cf. GitHub PR se2p#120)
- Remove the temporary hack caused by the `bytecode` library (cf. GitHub PR se2p#122)
- Handle `InvalidInput` when formatting module with `black` (cf. GitHub PR se2p#124)
- Fix configuration write (cf. GitHub PR se2p#125)
- Fix "tracing aborted" in coverage report (cf. GitHub PR se2p#126)
- Add local search (fix bugs in cf. GitHub PR se2p#127)
- Fix reload module (cf. GitHub PR se2p#128)
- Fix deprecated typing (cf. GitHub PR se2p#129)
- Add master-worker architecture (cf. GitHub PR se2p#130)
- Add execution recorder (cf. GitHub PR se2p#132)
- Add faker and fandango string generation
- Enhance `TypeTracing` for string subtypes
- Fix `TypeError` with `NoneType` (cf. GitHub Issue se2p#53)
- Add test suite/case minimization with multiple fitness functions
- Add LLM type inference
- Adjust optional dependencies to use `--extras` instead of `--with`
- Add `Executed` and `CrashRevealingSize` runtime variables
- Add before-execution execution recorder
- Improve LLM assertion parsing
- Replace `isort` with `ruff-format`
- Improve DynaMOSA parameters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants