[New-bugs-announce] [issue18952] Fix test.support.open_urlresource (support package regression)

Zachary Ware report at bugs.python.org
Sat Sep 7 06:22:13 CEST 2013


New submission from Zachary Ware:

Since test.support was moved into its own package, support.open_urlresource has been unable to work.  It expects <__file__ dir>/data to exist, but since <__file__ dir> is now Lib/test/support instead of Lib/test, it doesn't unless someone creates it manually.  Since open_urlresource turns all exceptions into SkipTest, this means that all test runs have been silently skipping test_codecmaps_* and a couple others since support became a package.

Here's a patch with my preferred fix, which is to move Lib/test/data to Lib/test/support/data.  This dir is only used by support.open_urlresource, and moving it does just a tiny bit to de-clutter Lib/test.

----------
components: Tests
files: move_test_data.diff
keywords: patch
messages: 197132
nosy: ezio.melotti, ncoghlan, zach.ware
priority: normal
severity: normal
status: open
title: Fix test.support.open_urlresource (support package regression)
type: behavior
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file31637/move_test_data.diff

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


More information about the New-bugs-announce mailing list