[Twisted-Python] Twisted Trial (unittest) and Ant

2009-09-16 Thread Valeriy Pogrebitskiy
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 -

Re: [Twisted-Python] Twisted Trial changes working directory

2009-07-03 Thread Gerrat Rickert
>-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

Re: [Twisted-Python] Twisted Trial changes working directory

2009-07-03 Thread Jean-Paul Calderone
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. >.

[Twisted-Python] Twisted Trial changes working directory

2009-07-03 Thread Gerrat Rickert
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

Re: [Twisted-Python] Twisted Trial

2009-06-24 Thread Gerrat Rickert
>-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: >>

Re: [Twisted-Python] Twisted Trial

2009-06-23 Thread glyph
(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 >

[Twisted-Python] Twisted Trial

2009-06-23 Thread Gerrat Rickert
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): =