FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-107954: Fix configuration type for the perf profiler by pablogsal · Pull Request #124636 · python/cpython · GitHub

/ cpython Public

gh-107954: Fix configuration type for the perf profiler - #124636

Merged
ambv merged 3 commits into
python:mainfrom
pablogsal:perf-fix
Sep 27, 2024
Merged

gh-107954: Fix configuration type for the perf profiler#124636
ambv merged 3 commits into
python:mainfrom
pablogsal:perf-fix

Conversation

pablogsal commented Sep 26, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

Copy link
Copy Markdown
Contributor

@pablogsal thanks! I confirm that this PR fixes #124613

Copy link
Copy Markdown
Contributor

Tests are failing, I think they need to be updated as well.

======================================================================
FAIL: test_config_get (test.test_capi.test_config.CAPITests.test_config_get) (name='perf_profiling', option_type=<class 'bool'>, sys_attr=None)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/admin/actions-runner/_work/cpython/cpython/Lib/test/test_capi/test_config.py", line 130, in test_config_get
    self.assertIsInstance(value, option_type)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
AssertionError: 0 is not an instance of <class 'bool'>

Copy link
Copy Markdown
Member

@pablogsal: I pushed a change in your PR to update tests.

Copy link
Copy Markdown
Member

I didn't know that perf_profiling can have two values, 1 or 2. It's not documented.

@pablogsal: I also pushed a change to complete the doc and add more tests. Would you mind to review my change?

Copy link
Copy Markdown
Contributor

Thanks folks, I've tested the PR in our internal CI and all the tests are passing. LGTM.

ambv merged commit 02b49c5 into python:main Sep 27, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL