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: Relative import used on test_future5
Type: behavior Stage:
Components: Tests Versions: Python 3.2, Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: cdimauro, mark.dickinson, python-dev
Priority: normal Keywords: patch

Created on 2011-06-25 11:23 by cdimauro, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_future5.py.patch cdimauro, 2011-06-25 11:23 review
Messages (3)
msg139046 - (view) Author: Cesare Di Mauro (cdimauro) Date: 2011-06-25 11:23
Executing test_future5 fails:

D:\CPython>PCbuild\python_d.exe Lib\test\test_future5.py
Traceback (most recent call last):
  File "Lib\test\test_future5.py", line 6, in <module>
    from . import support
ValueError: Attempted relative import in non-package
[51279 refs]

Tested on Windows 7.
msg139047 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-06-25 11:30
New changeset c5fca67a7e8c by Mark Dickinson in branch '3.2':
Issue #12408: Fix relative import in test_future5.py.  Thanks Cesare Di Mauro.
http://hg.python.org/cpython/rev/c5fca67a7e8c

New changeset 898c0c8ba8ca by Mark Dickinson in branch 'default':
Issue #12408: Merge.
http://hg.python.org/cpython/rev/898c0c8ba8ca
msg139048 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2011-06-25 11:31
Thanks for the report.
History
Date User Action Args
2022-04-11 14:57:19adminsetgithub: 56617
2011-06-25 11:31:14mark.dickinsonsetstatus: open -> closed

nosy: + mark.dickinson
messages: + msg139048

resolution: fixed
2011-06-25 11:30:12python-devsetnosy: + python-dev
messages: + msg139047
2011-06-25 11:23:46cdimaurocreate