Skip to content

Conversation

@CyberiaResurrection
Copy link
Collaborator

@CyberiaResurrection CyberiaResurrection commented Aug 10, 2025

I only really noticed this when reporting #419 , the bits in question being:

⠹ Running clean testspython -m pytest  -vv -x -q Tests/ --rootdir=.

and

⠸ Running forced fail testpython -m pytest  -vv -x -q Tests/ --rootdir=.

After more debug runs, I saw similar issues happened for Generating mutants , Listing all tests and Running stats.

This PR should be quite simple to understand - the current status quo prevails when mutmut.config is not set or mutmut.config.debug is False, but when it's True, append a newline to the spinner title in question so the next line of output starts on the next line, rather than appended to the end of the spinner title.

Checking mutmut.config is None first obviates the NoneType reference error that would otherwise occur - eg in mocked tests.

@boxed
Copy link
Owner

boxed commented Aug 11, 2025

Couldn't this extra newline to the title be handled inside the CaptureOutput constructor? That would cut this change down to 2 lines in one place, no?

@CyberiaResurrection
Copy link
Collaborator Author

Yes, it could. Lemme give that a spin.

@CyberiaResurrection
Copy link
Collaborator Author

@boxed, do you want me to rebase this PR to remove the first 5 commits?

@boxed
Copy link
Owner

boxed commented Aug 11, 2025

Yes please

@boxed pointed out a better place to make the change was in the
CatchOutput ctor itself, as that would make _all_ spinner titles
debug sensitive with less code change.
@CyberiaResurrection
Copy link
Collaborator Author

That should be rebased now

@boxed boxed merged commit 0232420 into boxed:main Aug 11, 2025
5 checks passed
@boxed
Copy link
Owner

boxed commented Aug 11, 2025

Thanks!

@CyberiaResurrection CyberiaResurrection deleted the SpinTitlesUnderDebug branch August 11, 2025 14:07
@boxed
Copy link
Owner

boxed commented Aug 18, 2025

I sent an invite to give you commit rights to mutmut.

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.

2 participants