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.

Author JayKrish
Recipients JayKrish, Todd.Rovito, kbk, philwebster, roger.serwy, terry.reedy
Date 2013年06月17日.19:22:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1371496963.1.0.836519339228.issue18189@psf.upfronthosting.co.za>
In-reply-to
Content
The "from test.resource import requires" give me errors saying no module named resource in test (Am I missing anything?)
For the moment I use "from test.support import requires" as in test_delegator1.patch
..... 
from test.support import requires
requires('gui')
class Test_delegator(unittest.TestCase):
 def setUp(self):
 .....
The results follows
---------------------------
jaykrish@jaykrish-Vostro-1520:~/gsoc/cpy/cpython$ ./python -m test -ugui test_idle
[1/1] test_idle
1 test OK.
[189373 refs]
--------------------------
jaykrish@jaykrish-Vostro-1520:~/gsoc/cpy/cpython$ ./python -m test test_idle
[1/1] test_idle
test test_idle failed -- Traceback (most recent call last):
 File "/home/jaykrish/gsoc/cpy/cpython/Lib/unittest/case.py", line 384, in _executeTestPart
 function()
 File "/home/jaykrish/gsoc/cpy/cpython/Lib/unittest/loader.py", line 32, in testFailure
 raise exception
ImportError: Failed to import test module: idlelib.idle_test.test_delegator
Traceback (most recent call last):
 File "/home/jaykrish/gsoc/cpy/cpython/Lib/unittest/loader.py", line 261, in _find_tests
 module = self._get_module_from_name(name)
 File "/home/jaykrish/gsoc/cpy/cpython/Lib/unittest/loader.py", line 239, in _get_module_from_name
 __import__(name)
 File "/home/jaykrish/gsoc/cpy/cpython/Lib/idlelib/idle_test/test_delegator.py", line 8, in <module>
 requires('gui')
 File "/home/jaykrish/gsoc/cpy/cpython/Lib/test/support.py", line 390, in requires
 raise ResourceDenied(msg)
test.support.ResourceDenied: Use of the 'gui' resource not enabled
1 test failed:
 test_idle
[189233 refs]
---------------------------
And yes, the teardown method using self.root.destroy() now.
History
Date User Action Args
2013年06月17日 19:22:43JayKrishsetrecipients: + JayKrish, terry.reedy, kbk, roger.serwy, Todd.Rovito, philwebster
2013年06月17日 19:22:43JayKrishsetmessageid: <1371496963.1.0.836519339228.issue18189@psf.upfronthosting.co.za>
2013年06月17日 19:22:43JayKrishlinkissue18189 messages
2013年06月17日 19:22:42JayKrishcreate

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