homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: wsgiref can't handle unicode environments
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 2.6
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: pje Nosy List: benjamin.peterson, brian.curtin, pje, r.david.murray
Priority: normal Keywords:

Created on 2008年07月17日 23:53 by benjamin.peterson, last changed 2022年04月11日 14:56 by admin. This issue is now closed.

Messages (5)
msg69929 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008年07月17日 23:53
The following errors pop up on the Windows trunk build bot because the
LIB environmental variable is unicode not str. This causes the
validation to fail.
Re-running test 'test_wsgiref' in verbose mode
testAbstractMethods (test.test_wsgiref.HandlerTests) ... ok
testBasicErrorOutput (test.test_wsgiref.HandlerTests) ... ok
testCGIEnviron (test.test_wsgiref.HandlerTests) ... ok
testContentLength (test.test_wsgiref.HandlerTests) ... ok
testEnviron (test.test_wsgiref.HandlerTests) ... ERROR
testErrorAfterOutput (test.test_wsgiref.HandlerTests) ... ok
testHeaderFormats (test.test_wsgiref.HandlerTests) ... ok
testScheme (test.test_wsgiref.HandlerTests) ... ok
testExtras (test.test_wsgiref.HeaderTests) ... ok
testMappingInterface (test.test_wsgiref.HeaderTests) ... ok
testRequireList (test.test_wsgiref.HeaderTests) ... ok
test_plain_hello (test.test_wsgiref.IntegrationTests) ... ok
test_simple_validation_error (test.test_wsgiref.IntegrationTests) ... FAIL
test_validated_hello (test.test_wsgiref.IntegrationTests) ... FAIL
testAppURIs (test.test_wsgiref.UtilityTests) ... ok
testCrossDefaults (test.test_wsgiref.UtilityTests) ... ok
testDefaults (test.test_wsgiref.UtilityTests) ... ok
testFileWrapper (test.test_wsgiref.UtilityTests) ... ok
testGuessScheme (test.test_wsgiref.UtilityTests) ... ok
testHopByHop (test.test_wsgiref.UtilityTests) ... ok
testNormalizedShifts (test.test_wsgiref.UtilityTests) ... ok
testReqURIs (test.test_wsgiref.UtilityTests) ... ok
testSimpleShifts (test.test_wsgiref.UtilityTests) ... ok
======================================================================
ERROR: testEnviron (test.test_wsgiref.HandlerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
 File
"E:\cygwin\home\db3l\buildarea\trunk.bolen-windows\build\lib\test\test_wsgiref.py",
line 437, in testEnviron
 self.checkOSEnviron(h)
 File
"E:\cygwin\home\db3l\buildarea\trunk.bolen-windows\build\lib\test\test_wsgiref.py",
line 429, in checkOSEnviron
 self.assertEqual(env[k],v)
KeyError: 'AUTH_TYPE'
======================================================================
FAIL: test_simple_validation_error (test.test_wsgiref.IntegrationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
 File
"E:\cygwin\home\db3l\buildarea\trunk.bolen-windows\build\lib\test\test_wsgiref.py",
line 157, in test_simple_validation_error
 "AssertionError: Headers (('Content-Type', 'text/plain')) must"
AssertionError: "AssertionError: Environmental variable LIB is not a
string: <type 'unicode'> (value: u'C:\\\\Program Files\\\\Microsoft
Visual Studio 9.0\\\\VC\\\\LIB;C:\\\\Program Files\\\\Microsoft
SDKs\\\\Windows\\\\v6.0A\\\\lib;c:\\\\program files\\\\microsoft visual
studio .NET 2003\\\\vc7\\\\atlmfc\\\\lib;c:\\\\program
files\\\\microsoft visual studio .NET 2003\\\\vc7\\\\lib;c:\\\\program
files\\\\microsoft visual studio .NET
2003\\\\vc7\\\\PlatformSDK\\\\lib;C:\\\\Program Files\\\\Microsoft
Visual Studio .NET 2003\\\\SDK\\\\v1.1\\\\Lib\\\\')" != "AssertionError:
Headers (('Content-Type', 'text/plain')) must be of type list: <type
'tuple'>"
======================================================================
FAIL: test_validated_hello (test.test_wsgiref.IntegrationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
 File
"E:\cygwin\home\db3l\buildarea\trunk.bolen-windows\build\lib\test\test_wsgiref.py",
line 145, in test_validated_hello
 self.check_hello(out, has_length=False)
 File
"E:\cygwin\home\db3l\buildarea\trunk.bolen-windows\build\lib\test\test_wsgiref.py",
line 134, in check_hello
 "\r\n"
AssertionError: 'HTTP/1.0 500 Dude, this is whack!\r\nDate: 2008年7月17日 22:45:20 GMT\r\nServer: WSGIServer/0.1
Python/2.6b1+\r\nContent-Type: text/plain\r\nContent-Length: 59\r\n\r\nA
server error occurred. Please contact the administrator.' != 'HTTP/1.0
200 OK\r\nServer: WSGIServer/0.1 Python/2.6b1+\r\nContent-Type:
text/plain\r\nDate: 2006年6月05日 18:49:54 GMT\r\n\r\nHello, world!'
msg109622 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2010年07月08日 22:24
I'd guess that this has already been fixed as it relates to the Windows buildbot but has slipped under the radar.
msg111998 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2010年07月29日 20:39
As nobody has responded to msg109622 I'll close unless anyone objects.
msg112012 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2010年07月29日 21:29
Unless this is confirmed to have been fixed, it should not be closed.
msg278383 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2016年10月09日 17:58
Since this is a buildbot error report and we don't release unless the buildbots in the stable set are green, I think we can close this now :)
History
Date User Action Args
2022年04月11日 14:56:36adminsetgithub: 47651
2016年10月09日 17:58:45r.david.murraysetstatus: open -> closed

nosy: + r.david.murray
messages: + msg278383

resolution: out of date
stage: test needed -> resolved
2014年02月03日 19:19:18BreamoreBoysetnosy: - BreamoreBoy
2010年07月29日 21:29:15brian.curtinsetstatus: pending -> open
nosy: + brian.curtin
messages: + msg112012

2010年07月29日 20:39:01BreamoreBoysetstatus: open -> pending
priority: high -> normal
messages: + msg111998
2010年07月08日 22:24:15BreamoreBoysetnosy: + BreamoreBoy
messages: + msg109622
2009年05月16日 20:33:02ajaksu2setstage: test needed
2008年07月17日 23:58:08georg.brandlsetassignee: pje
nosy: + pje
2008年07月17日 23:54:09benjamin.petersonsetpriority: high
type: behavior
components: + Library (Lib)
versions: + Python 2.6
2008年07月17日 23:53:34benjamin.petersoncreate

AltStyle によって変換されたページ (->オリジナル) /