[New-bugs-announce] [issue13969] path name must always be string

Tshepang Lekhonkhobe report at bugs.python.org
Wed Feb 8 12:56:38 CET 2012


New submission from Tshepang Lekhonkhobe <tshepang at gmail.com>:

I was writing a test that could return True for "if not pathname" (http://hg.python.org/cpython/file/58bd6a58365d/Lib/packaging/util.py#l109), and included all values I know that could return a False value, but then I realised that the only value we should check against is an empty string... I don't think any other type is applicable.

I left None as a valid type, otherwise some other test (test_command_install_dist.py) fails.

----------
files: path-name-must-be-string-or-None.patch
keywords: patch
messages: 152845
nosy: tshepang
priority: normal
severity: normal
status: open
title: path name must always be string
Added file: http://bugs.python.org/file24452/path-name-must-be-string-or-None.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13969>
_______________________________________


More information about the New-bugs-announce mailing list