On 20 Apr 2018 8:39 am, "Chris Angelico" wrote:
On Fri, Apr 20, 2018 at 3:01 PM, Francesco Russo
wrote:
> On 18/04/18 20:26, Chris Angelico wrote:
>> This is a bad idea. Each function that starts test_ should be
>> completely independent. You should be able to run any one of them on
>> its own (
On Fri, Apr 20, 2018 at 3:01 PM, Francesco Russo wrote:
> On 18/04/18 20:26, Chris Angelico wrote:
>> This is a bad idea. Each function that starts test_ should be
>> completely independent. You should be able to run any one of them on
>> its own (say, if you're trying to figure out why your lates
On 18/04/18 20:26, Chris Angelico wrote:
> On Thu, Apr 19, 2018 at 2:51 AM, Francesco Russo
> wrote:
>> My use case: my SUT is split into modules. Besides writing unit tests for
>> each module, I want to write an integration test, and I also need to
>> perform some actions between two calls to th
On Thu, Apr 19, 2018 at 2:51 AM, Francesco Russo wrote:
> My use case: my SUT is split into modules. Besides writing unit tests for
> each module, I want to write an integration test, and I also need to
> perform some actions between two calls to the SUT. In my case, the order of
> the execution i
Hello!
I'm reading the documentation of unittest.TestSuite (Python 2 and 3), but I
can't find any explicit sentence stating that TestSuite will honor the
order. I can only read that TestSuite can group test cases together. Please
blame it on my poor English skills if I'm not interpreting the
docum
On Sep 11, 9:34 pm, "Diez B. Roggisch" wrote:
> DarkBlue wrote:
> > Here is some code from a pyqt4.5.4 application on python 2.6
>
> > def findData(self):
>
> > self.ui.label.setText('Processing... ')
>
> > # here we do something which takes a few seconds
> > self.refreshGrid()
DarkBlue wrote:
> Here is some code from a pyqt4.5.4 application on python 2.6
>
> def findData(self):
>
> self.ui.label.setText('Processing... ')
>
> # here we do something which takes a few seconds
> self.refreshGrid()
>
>
>
> The problem is that the text in the self.ui.
Here is some code from a pyqt4.5.4 application on python 2.6
def findData(self):
self.ui.label.setText('Processing... ')
# here we do something which takes a few seconds
self.refreshGrid()
The problem is that the text in the self.ui.label is only changed
on screen after th
Ah, no wonder. I test with p=[5,4].
thanks. so basically, I still need to expand it first given this
behaviour.
Robert Kern wrote:
> [EMAIL PROTECTED] wrote:
> > Hi,
> >
> > I am wondering how this is evaluated.
> >
> > a=(x for x in [1,2,3,4])
> > p=[4,5]
> >
> > c=[x for x in p if x in list(a)]
[EMAIL PROTECTED] wrote:
> Hi,
>
> I am wondering how this is evaluated.
>
> a=(x for x in [1,2,3,4])
> p=[4,5]
>
> c=[x for x in p if x in list(a)]
>
> c is []
>
> but if I expand a first, like a = list(a)
>
> c is [4]
>
> So it seems that the "if" part don't get expanded ?
Well, for every elemen
[EMAIL PROTECTED] wrote:
> Hi,
>
> I am wondering how this is evaluated.
>
> a=(x for x in [1,2,3,4])
> p=[4,5]
>
> c=[x for x in p if x in list(a)]
>
> c is []
No it isn't.
In [1]: a=(x for x in [1,2,3,4])
In [2]: p=[4,5]
In [3]: c=[x for x in p if x in list(a)]
In [4]: c
Out[4]: [4]
I'm
Hi,
I am wondering how this is evaluated.
a=(x for x in [1,2,3,4])
p=[4,5]
c=[x for x in p if x in list(a)]
c is []
but if I expand a first, like a = list(a)
c is [4]
So it seems that the "if" part don't get expanded ?
--
http://mail.python.org/mailman/listinfo/python-list
12 matches
Mail list logo