[issue14382] test_unittest crashes loading 'unittest.test.testmock' when run from installed Python

2012-03-22 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:

This should be fixable using the attached patch.

--
keywords: +patch
nosy: +vinay.sajip
stage: needs patch - patch review
type:  - behavior
Added file: http://bugs.python.org/file24992/Makefile.pre.in.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14382
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14382] test_unittest crashes loading 'unittest.test.testmock' when run from installed Python

2012-03-22 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

Thanks vinay (and ned). I thought that was the cause of the problem - but glad 
you diagnosed and fixed it before I had to look into it. Patch looks good to 
apply.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14382
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14382] test_unittest crashes loading 'unittest.test.testmock' when run from installed Python

2012-03-22 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 1ec74eeda4e8 by Ned Deily in branch 'default':
Issue #14382: Ensure new unittest.test.testmock is installed.
http://hg.python.org/cpython/rev/1ec74eeda4e8

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14382
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14382] test_unittest crashes loading 'unittest.test.testmock' when run from installed Python

2012-03-22 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14382
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14382] test_unittest crashes loading 'unittest.test.testmock' when run from installed Python

2012-03-21 Thread Ned Deily

New submission from Ned Deily n...@acm.org:

When run from an installed location, rather than from the build directory, 
test_unittest now crashes:

$ ./root/bin/python3.3 -m test -w -uall,-largefile test_unittest
[1/1] test_unittest
test test_unittest crashed -- Traceback (most recent call last):
  File 
/py/dev/default/b10.7_t10.7_x4.2_cclang_d/unix/root/lib/python3.3/test/regrtest.py,
 line 1236, in runtest_inner
indirect_test()
  File 
/py/dev/default/b10.7_t10.7_x4.2_cclang_d/unix/root/lib/python3.3/test/test_unittest.py,
 line 8, in test_main
support.run_unittest(unittest.test.suite())
  File 
/py/dev/default/b10.7_t10.7_x4.2_cclang_d/unix/root/lib/python3.3/unittest/test/__init__.py,
 line 17, in suite
suite.addTest(loader.loadTestsFromName('unittest.test.testmock'))
  File 
/py/dev/default/b10.7_t10.7_x4.2_cclang_d/unix/root/lib/python3.3/unittest/loader.py,
 line 105, in loadTestsFromName
parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'testmock'

1 test failed:
test_unittest
Re-running failed tests in verbose mode
Re-running test 'test_unittest' in verbose mode
test test_unittest crashed -- Traceback (most recent call last):
  File 
/py/dev/default/b10.7_t10.7_x4.2_cclang_d/unix/root/lib/python3.3/test/regrtest.py,
 line 1236, in runtest_inner
indirect_test()
  File 
/py/dev/default/b10.7_t10.7_x4.2_cclang_d/unix/root/lib/python3.3/test/test_unittest.py,
 line 8, in test_main
support.run_unittest(unittest.test.suite())
  File 
/py/dev/default/b10.7_t10.7_x4.2_cclang_d/unix/root/lib/python3.3/unittest/test/__init__.py,
 line 17, in suite
suite.addTest(loader.loadTestsFromName('unittest.test.testmock'))
  File 
/py/dev/default/b10.7_t10.7_x4.2_cclang_d/unix/root/lib/python3.3/unittest/loader.py,
 line 105, in loadTestsFromName
parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'testmock'

--
components: Tests
messages: 156526
nosy: michael.foord, ned.deily
priority: normal
severity: normal
stage: needs patch
status: open
title: test_unittest crashes loading 'unittest.test.testmock' when run from 
installed Python
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14382
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com