Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixup the spec string for sys.executable (#3327)
* Fixup the spec string for sys.executable The previous spec string was: namespace(name='cpython', cache_tag='cpython-313', version=sys.version_info(major=3, minor=13, micro=0, releaselevel='candidate', serial=1), hexversion=51183809, _multiarch='x86_64-linux-gnu')313-True When it was supposed to be: cpython313-64 Fixes https://github.com/tox-dev/tox/pull/3325/files#r1718230254 Fixes https://github.com/tox-dev/tox/pull/3325/files#r1718246292 Adds tests for a new method. * Make the new method private * Silence the linter, this is a test for a private method The error was: tests/tox_env/python/test_python_api.py:314:12: SLF001 Private member accessed: `_python_spec_for_sys_executable` | 312 | mocker.patch.object(sys, "implementation", implementation) 313 | mocker.patch.object(sys, "maxsize", 2**arch // 2 - 1) 314 | spec = Python._python_spec_for_sys_executable() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SLF001 315 | assert spec.implementation == impl 316 | assert spec.major == major | Found 1 error. * Add a changelog fragment
- Loading branch information