Skip to content

Continous Integration on Python 3.12.0 versions: TypeError: startswith first arg must be bytes or a tuple of bytes, not str #62

@SylvainDe

Description

@SylvainDe

First failure

Date: 30th May 2023
Build: https://github.com/SylvainDe/DidYouMean-Python/actions/runs/5116309715
Jobs: https://github.com/SylvainDe/DidYouMean-Python/actions/runs/5116309715/jobs/9213186118

Python 3.12.0a7 (main, Apr  5 2023, 12:47:07) [GCC 9.4.0]
sys.version_info(major=3, minor=12, micro=0, releaselevel='alpha', serial=7)
  coverage run -m unittest discover --start-directory=didyoumean --pattern=*.py
  coverage run -m unittest2 discover --start-directory=didyoumean --pattern=*.py || true
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/bin/coverage", line 8, in <module>
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/cmdline.py", line 973, in main
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/cmdline.py", line 684, in command_line
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/cmdline.py", line 858, in do_run
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/control.py", line 638, in start
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/collector.py", line 364, in start
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/threading.py", line 83, in settrace
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/control.py", line 384, in _should_trace
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/inorout.py", line 316, in should_trace
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Exception ignored in: <object repr() failed>
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/threading.py", line 1553, in _shutdown
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/control.py", line 384, in _should_trace
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/inorout.py", line 316, in should_trace
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Exception ignored in atexit callback: <bound method Coverage._atexit of <coverage.control.Coverage object at 0x7fb7fcfe7fb0>>
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/control.py", line 652, in _atexit
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/control.py", line 384, in _should_trace
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/inorout.py", line 316, in should_trace
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Error: Process completed with exit code 1.

Last success

Date:
Build: https://github.com/SylvainDe/DidYouMean-Python/actions/runs/5107199492
Jobs: https://github.com/SylvainDe/DidYouMean-Python/actions/runs/5107199492/jobs/9179893427

 Python 3.12.0a7 (main, Apr  5 2023, 12:47:07) [GCC 9.4.0]
sys.version_info(major=3, minor=12, micro=0, releaselevel='alpha', serial=7)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions