Skip to content

test_glob fails with UnicodeDecodeError #45383

Closed

Description

@theller
BPO 1042
Nosy @theller, @tiran

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2007-11-08.13:45:55.569>
created_at = <Date 2007-08-28.06:11:28.837>
labels = ['type-bug', 'OS-windows']
title = 'test_glob fails with UnicodeDecodeError'
updated_at = <Date 2007-11-08.13:45:55.547>
user = 'https://github.com/theller'

bugs.python.org fields:

activity = <Date 2007-11-08.13:45:55.547>
actor = 'christian.heimes'
assignee = 'none'
closed = True
closed_date = <Date 2007-11-08.13:45:55.569>
closer = 'christian.heimes'
components = ['Windows']
creation = <Date 2007-08-28.06:11:28.837>
creator = 'theller'
dependencies = []
files = []
hgrepos = []
issue_num = 1042
keywords = ['rfe']
message_count = 3.0
messages = ['55354', '56842', '57240']
nosy_count = 2.0
nosy_names = ['theller', 'christian.heimes']
pr_nums = []
priority = 'high'
resolution = 'out of date'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue1042'
versions = ['Python 3.0']

Activity

  1. theller commented on Aug 28, 2007

    @theller
    Author

    Unicode errors in various tests - not only in test_glob:

      test_glob
      test test_glob failed -- Traceback (most recent call last):
        File "c:\svn\py3k\lib\test\test_glob.py", line 87, in
    test_glob_directory_names
          eq(self.glob('*', '*a'), [])
        File "c:\svn\py3k\lib\test\test_glob.py", line 41, in glob
          res = glob.glob(p)
        File "c:\svn\py3k\lib\glob.py", line 16, in glob
          return list(iglob(pathname))
        File "c:\svn\py3k\lib\glob.py", line 42, in iglob
          for name in glob_in_dir(dirname, basename):
        File "c:\svn\py3k\lib\glob.py", line 56, in glob1
          names = os.listdir(dirname)
      UnicodeDecodeError: 'utf8' codec can't decode bytes in position 27-31:
    unexpected end of data
  2. tiran commented on Oct 27, 2007

    @tiran
    Member

    I think the problem is solved now. I haven't seen glob crashing for a while.

  3. tiran commented on Nov 8, 2007

    @tiran
    Member

    I'm unable to reproduce the error and I haven't seen it for a long time.
    Closing

  4. added
    type-bugAn unexpected behavior, bug, or error
    on Nov 8, 2007
  5. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowstype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions