Re: [Tutor] About Using timeout Mark in Pytest

2016-08-21 Thread Rohit Mediratta
I'm guessing the decorator is using method='thread', which is the default and aborts the process when timeout occurs. Can you see if your env supports method='signal' and if this resolves the issue? @pytest.mark.timeout(method='signal') Reference guide for supported options is here: https://pyp

[Tutor] Trying to avoid using eval..

2013-02-22 Thread Rohit Mediratta
Hi All, I want to reload my Module after I fix bugs and want to instantiate an object of a class contained in this module. Heres the pseudo code of what I want to do: def rerun(testBlock) : op = testBlock.split('.') module = op[0] ; className = op[1] reload(module) # testBloc

[Tutor] Assigning multi line value to a variable

2013-01-15 Thread Rohit Mediratta
Hi, I am using Centos 6.3 and python 2.6.6. When I try to assign a variables value inside a multiple line message, it does not work. >>>cardName = "ActualCardName" >>>data = """ """ >>> print data I would like %cardName to be replaced by "actualCardName". As you can s