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.
Created on 2012年02月16日 23:48 by vinay.sajip, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg153515 - (view) | Author: Vinay Sajip (vinay.sajip) * (Python committer) | Date: 2012年02月16日 23:48 | |
test_packaging has started failing in the pythonv branch: ====================================================================== ERROR: test_old_record_extensions (packaging.tests.test_command_install_dist.InstallTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python3.3/packaging/tests/test_command_install_dist.py", line 214, in test_old_record_extensions support.copy_xxmodule_c(project_dir) File "/usr/local/lib/python3.3/packaging/tests/support.py", line 334, in copy_xxmodule_c filename = _get_xxmodule_path() File "/usr/local/lib/python3.3/packaging/tests/support.py", line 346, in _get_xxmodule_path if os.path.exists(path): UnboundLocalError: local variable 'path' referenced before assignment ====================================================================== ERROR: test_build_ext (packaging.tests.test_command_build_ext.BuildExtTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python3.3/packaging/tests/test_command_build_ext.py", line 30, in test_build_ext support.copy_xxmodule_c(self.tmp_dir) File "/usr/local/lib/python3.3/packaging/tests/support.py", line 334, in copy_xxmodule_c filename = _get_xxmodule_path() File "/usr/local/lib/python3.3/packaging/tests/support.py", line 346, in _get_xxmodule_path if os.path.exists(path): UnboundLocalError: local variable 'path' referenced before assignment Upon investigation, the code for _get_xxmodule_path is this: def _get_xxmodule_path(): if sysconfig.is_python_build(): srcdir = sysconfig.get_config_var('projectbase') path = os.path.join(os.getcwd(), srcdir, 'Modules', 'xxmodule.c') else: os.path.join(os.path.dirname(__file__), 'xxmodule.c') if os.path.exists(path): return path It looks as if the else: path should have a "path = " ... with that change, the test_packaging failures go away. |
|||
| msg153574 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2012年02月17日 17:14 | |
New changeset 697e934ade19 by Éric Araujo in branch 'default': Fix code I unwittingly broke in b0e2d6592a1f (#14038) http://hg.python.org/cpython/rev/697e934ade19 |
|||
| msg153579 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2012年02月17日 17:21 | |
Thanks for catching it. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:26 | admin | set | github: 58246 |
| 2012年02月17日 17:21:30 | eric.araujo | set | status: open -> closed messages: + msg153579 assignee: tarek -> eric.araujo resolution: fixed stage: resolved |
| 2012年02月17日 17:14:45 | python-dev | set | nosy:
+ python-dev messages: + msg153574 |
| 2012年02月16日 23:48:55 | vinay.sajip | create | |