I am trying to implement Ant build.xml script that would include
testing Python code using twisted.trial.unittest. When using available
pyAntTasks ( target), I am getting all sorts of errors - even
though test scripts complete successfully using Python directly, or
using Eclipse's' Run As -
>-Original Message-
>From: twisted-python-boun...@twistedmatrix.com [mailto:twisted-python-
>boun...@twistedmatrix.com] On Behalf Of Jean-Paul Calderone
>Sent: Friday, July 03, 2009 11:27 AM
>To: Twisted general discussion
>Subject: Re: [Twisted-Python] Twisted Tri
On Fri, 3 Jul 2009 10:17:12 -0400, Gerrat Rickert
wrote:
>I have a (Twisted) program that saves & uses a file in the current
>working directory.
>When running tests for the program, Trial changes the working directory,
>causing this file to be written into the '_trial_temp' directory
>instead.
>.
I have a (Twisted) program that saves & uses a file in the current
working directory.
When running tests for the program, Trial changes the working directory,
causing this file to be written into the '_trial_temp' directory
instead.
...so the program works differently when run via Trial vs. in norm
>-Original Message-
>From: gl...@divmod.com [mailto:gl...@divmod.com]
>Sent: Tuesday, June 23, 2009 12:27 PM
>To: Twisted general discussion
>Subject: Re: [Twisted-Python] Twisted Trial
>
>
>(snip)
>
>On 01:42 pm, grick...@coldstorage.com wrote:
>>
(snip)
On 01:42 pm, grick...@coldstorage.com wrote:
> File "c:\python25\lib\site-packages\twisted\plugins\testplugin.py",
>line 12, in
>from twisted.plugin import IPlugin, ITestPlugin, ITestPlugin2
>exceptions.ImportError: cannot import name ITestPlugin
>test_example
> ExampleTestCase
>
I know this is a very basic question, but I can't seem to get trial
working correctly.
(I'm working on Windows XP, with python 2.5.4 and twisted 8.2.0)
I've created a very simple example:
I have a file, 'test_example.py'
It's contents are (between === lines):
=