Skip to content

Colorize tests fail on iOS Xcode 16.2 #130293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
freakboy3742 opened this issue Feb 19, 2025 · 0 comments
Closed

Colorize tests fail on iOS Xcode 16.2 #130293

freakboy3742 opened this issue Feb 19, 2025 · 0 comments
Labels
3.13 bugs and security fixes 3.14 new features, bugs and security fixes OS-ios type-bug An unexpected behavior, bug, or error

Comments

@freakboy3742
Copy link
Contributor

freakboy3742 commented Feb 19, 2025

Bug report

Bug description:

The iOS buildbot was recently updated to run on Sequoia, with Xcode 16.2 and an iOS 18.2 simulator. This has revealed a set of test failures that weren't occurring on Xcode 15.4 and iOS 17.2:

The failures are all in the test__colorize tests:

test_colorized_detection_checks_for_environment_variables (test.test__colorize.TestColorizeFunction.test_colorized_detection_checks_for_environment_variables) ...  
  test_colorized_detection_checks_for_environment_variables (test.test__colorize.TestColorizeFunction.test_colorized_detection_checks_for_environment_variables) (env={}, fallback=True) ... FAIL  
  test_colorized_detection_checks_for_environment_variables (test.test__colorize.TestColorizeFunction.test_colorized_detection_checks_for_environment_variables) (env={'FORCE_COLOR': ''}, fallback=True) ... FAIL  
  test_colorized_detection_checks_for_environment_variables (test.test__colorize.TestColorizeFunction.test_colorized_detection_checks_for_environment_variables) (env={'NO_COLOR': ''}, fallback=True) ... FAIL  
  test_colorized_detection_checks_for_environment_variables (test.test__colorize.TestColorizeFunction.test_colorized_detection_checks_for_environment_variables) (env={'PYTHON_COLORS': 'x'}, fallback=True) ... FAIL  
  test_colorized_detection_checks_for_environment_variables (test.test__colorize.TestColorizeFunction.test_colorized_detection_checks_for_environment_variables) (env={'PYTHON_COLORS': ''}, fallback=True) ... FAIL  
  test_colorized_detection_checks_for_environment_variables (test.test__colorize.TestColorizeFunction.test_colorized_detection_checks_for_environment_variables) (env={'PYTHON_COLORS': '1'}, fallback=True) ... FAIL  
  test_colorized_detection_checks_for_environment_variables (test.test__colorize.TestColorizeFunction.test_colorized_detection_checks_for_environment_variables) (env={'PYTHON_COLORS': '0'}, fallback=True) ... FAIL  
  test_colorized_detection_checks_for_environment_variables (test.test__colorize.TestColorizeFunction.test_colorized_detection_checks_for_environment_variables) (env={'PYTHON_COLORS': 'x'}, fallback=True) ... FAIL  
  test_colorized_detection_checks_for_environment_variables (test.test__colorize.TestColorizeFunction.test_colorized_detection_checks_for_environment_variables) (env={'PYTHON_COLORS': ''}, fallback=True) ... FAIL
test_colorized_detection_checks_for_file (test.test__colorize.TestColorizeFunction.test_colorized_detection_checks_for_file) ... FAIL
test_colorized_detection_checks_for_std_streams (test.test__colorize.TestColorizeFunction.test_colorized_detection_checks_for_std_streams) ... FAIL

Example failed run: https://buildbot.python.org/#/builders/1380/builds/2619

This is likely due to a conflict between the iOS testbed forcing NO_COLOR, because an iOS log stream doesn't support ANSI logging sequences - but it's not clear why this didn't manifest previously.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Other

Linked PRs

@freakboy3742 freakboy3742 added 3.13 bugs and security fixes 3.14 new features, bugs and security fixes type-bug An unexpected behavior, bug, or error OS-ios labels Feb 19, 2025
@freakboy3742 freakboy3742 changed the title Colorize tests fail on Xcode 16.2 Colorize tests fail on iOS Xcode 16.2 Feb 19, 2025
freakboy3742 added a commit that referenced this issue Feb 20, 2025
Ensure colorize tests will run on dumb terminals (or environment with TERM=dumb set)
Co-authored-by: Hugo van Kemenade <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Feb 20, 2025
…ythonGH-130333)

Ensure colorize tests will run on dumb terminals (or environment with TERM=dumb set)
Co-authored-by: Hugo van Kemenade <[email protected]>
(cherry picked from commit 1b07006)

Co-authored-by: Russell Keith-Magee <[email protected]>
freakboy3742 added a commit that referenced this issue Feb 20, 2025
…H-130333) (#130334)

Ensure colorize tests will run on dumb terminals (or environment with TERM=dumb set)

(cherry picked from commit 1b07006)

Co-authored-by: Russell Keith-Magee <[email protected]>
freakboy3742 added a commit to freakboy3742/cpython that referenced this issue Mar 16, 2025
…nals. (pythonGH-130333) (python#130334)

Ensure colorize tests will run on dumb terminals (or environment with TERM=dumb set)

(cherry picked from commit 1b07006)

Co-authored-by: Russell Keith-Magee <[email protected]>
freakboy3742 added a commit to freakboy3742/cpython that referenced this issue Mar 16, 2025
…nals. (pythonGH-130333) (python#130334)

Ensure colorize tests will run on dumb terminals (or environment with TERM=dumb set)

(cherry picked from commit 1b07006)

Co-authored-by: Russell Keith-Magee <[email protected]>
freakboy3742 added a commit to freakboy3742/cpython that referenced this issue Mar 16, 2025
…als. (pythonGH-130333) (python#130334)

Ensure colorize tests will run on dumb terminals (or environment with TERM=dumb set)

(cherry picked from commit 1b07006)

Co-authored-by: Russell Keith-Magee <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes 3.14 new features, bugs and security fixes OS-ios type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant