Skip to content
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

test_glob fails with UnicodeDecodeError #45383

Closed
theller opened this issue Aug 28, 2007 · 3 comments
Closed

test_glob fails with UnicodeDecodeError #45383

theller opened this issue Aug 28, 2007 · 3 comments
Labels
OS-windows type-bug An unexpected behavior, bug, or error

Comments

@theller
Copy link

theller commented Aug 28, 2007

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']

@theller
Copy link
Author

theller commented Aug 28, 2007

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

@tiran
Copy link
Member

tiran commented Oct 27, 2007

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

@tiran
Copy link
Member

tiran commented Nov 8, 2007

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

@tiran tiran closed this as completed Nov 8, 2007
@tiran tiran added the type-bug An unexpected behavior, bug, or error label Nov 8, 2007
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-windows type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants