Skip to content

Colorize tests fail on iOS Xcode 16.2 #130293

Closed
@freakboy3742

Description

@freakboy3742

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixesOS-iostype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions