Needed class whose instances are many test cases

2005-11-11 Thread Sumit
I have scinario like I have to Create resource(in __init__()) Before Running a set of testcases and then In Testcases resources are going to used and then It will cleared off after Running the testcases by destructor __del__() import unittest import time class app_adminfunc(unittest.TestCase):

Re: Needed class whose instances are many test cases

2005-11-15 Thread Sumit
Thanks for comments .setup() is going the Run Before every testcase Run. But i need to create resource for set of testcases , it is one time only . I can not create at every instant before testcases Run . thats why Unittest.testsuit is goingto help me out . There __init__() can be Run One time and

10060, 'Operation timed out'

2006-01-17 Thread Sumit Acharya
I am using following script to connect to the server and i try the connection for 1000 times. Some times it succeeds for all the 1000 times,but some times it fails with error:- 10060, 'Operation timed out'. When it fails with the abover error, it seems timed out time is 20 seconds. Is there a way I

Re: 10060, 'Operation timed out'

2006-01-18 Thread Sumit Acharya
can u please modify the script that i have posted with your suggestion, it will help me to a certain extent. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: 10060, 'Operation timed out'

2006-01-18 Thread Sumit Acharya
Hi Steve, It didnt help, i am getting same error. -- http://mail.python.org/mailman/listinfo/python-list

Re: 10060, 'Operation timed out'

2006-01-18 Thread Sumit Acharya
After 20 seconds only. -- http://mail.python.org/mailman/listinfo/python-list

Re: 10060, 'Operation timed out'

2006-01-18 Thread Sumit Acharya
Hi Steve, Thanks, I have started the run without try and except block, I will update with the findings tomm. Please keep this thread on for you so that I can get the solution -- http://mail.python.org/mailman/listinfo/python-list

Re: 10060, 'Operation timed out'

2006-01-19 Thread Sumit Acharya
Hi Steve, this is the trace I have got:- Traceback (most recent call last): File "sumit1.py", line 39, in ? ftp.connect(host,port) File "C:\programs\packages\python24\lib\ftplib.py", line 129, in connect raise socket.error, msg socket.error: (10060, 'Operation timed out') -- http://ma

Re: 10060, 'Operation timed out'

2006-01-19 Thread Sumit Acharya
Ok, so need to see on the server side. -- http://mail.python.org/mailman/listinfo/python-list