Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mgorny
Copy link
Contributor

@mgorny mgorny commented Jul 12, 2025

  1. Detect EPYTEST_TIMEOUT overriding user value ([New Check]: EPYTEST_TIMEOUT overriding user value #740)
  2. Add a check for misplaced EPYTEST_* variables ([New Check]: EPYTEST_* variables declared after calling distutils_enable_tests #739)

@mgorny mgorny requested review from arthurzam and thesamesam July 12, 2025 15:32
Add a check for `EPYTEST_*` variables being declared after calling
`distutils_enable_tests`, so they don't affect it.  This catches only
global scope use, as it is valid to override them in function scope.
Since using `${var:=...}` assignment is also valid, hack a quick method
to handle them as well.

Closes: pkgcore#739
Signed-off-by: Michał Górny <[email protected]>
@mgorny
Copy link
Contributor Author

mgorny commented Jul 14, 2025

Updated.

Copy link
Member

@thesamesam thesamesam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Sorry, I didn't realise these comments were still pending and not submitted.)

PythonAnyMismatchedDepHasVersionCheck,
PythonMissingSCMDependency,
]
MisplacedEPyTestVar,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: not a fan of "PyTest`. I think the upstream style is "pytest" but they sometimes use "Pytest". I get it's awkward because of the "E" though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, mixed feelings about that too but it seems more consistent than "Epytest" or "EPytest".

@thesamesam
Copy link
Member

It looks good by the way. The comments are really just that rather than request for changes necessarily.

gentoo-bot pushed a commit that referenced this pull request Jul 15, 2025
Add a check for `EPYTEST_*` variables being declared after calling
`distutils_enable_tests`, so they don't affect it.  This catches only
global scope use, as it is valid to override them in function scope.
Since using `${var:=...}` assignment is also valid, hack a quick method
to handle them as well.

Closes: #739
Signed-off-by: Michał Górny <[email protected]>
Part-of: #747
Signed-off-by: Arthur Zamarin <[email protected]>
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.

[New Check]: EPYTEST_TIMEOUT overriding user value [New Check]: EPYTEST_* variables declared after calling distutils_enable_tests

3 participants