Re: Testing list sequence question -- thanks for the info

2023-03-05 Thread Grant Edwards
On 2023-03-05, Gabor Urban wrote: > Upgrading our Python to 3.7 seems to be out of question at the moment. Using an OrderedDict doesn't work for you? -- Grant -- https://mail.python.org/mailman/listinfo/python-list

Testing list sequence question -- thanks for the info

2023-03-05 Thread Gabor Urban
Hi guys, Thank you very much for the accurate answer. Upgrading our Python to 3.7 seems to be out of question at the moment. I will check the requirement specification if the order of the keys is important at all. It could be a wish only. -- Urbán Gábor Linux is like a wigwam: no Gates, no Win

Re: Testing list sequence question

2023-03-04 Thread Thomas Passin
On 3/4/2023 1:42 PM, Roel Schroeven wrote: Thomas Passin schreef op 4/03/2023 om 18:49: On 3/4/2023 11:38 AM, Gabor Urban wrote: >   Hi guys, > > I have a strange problem that I do not understand. I am testing function > which returns a dictionary. The code should ensure that the keys of the >

Re: Testing list sequence question

2023-03-04 Thread Chris Angelico
On Sun, 5 Mar 2023 at 05:44, Roel Schroeven wrote: > > Thomas Passin schreef op 4/03/2023 om 18:49: > > On 3/4/2023 11:38 AM, Gabor Urban wrote: > > > Hi guys, > > > > > > I have a strange problem that I do not understand. I am testing function > > > which returns a dictionary. The code should e

Re: Testing list sequence question

2023-03-04 Thread Roel Schroeven
Thomas Passin schreef op 4/03/2023 om 18:49: On 3/4/2023 11:38 AM, Gabor Urban wrote: > Hi guys, > > I have a strange problem that I do not understand. I am testing function > which returns a dictionary. The code should ensure that the keys of the > dictionary are generated in a given order.

Re: Testing list sequence question

2023-03-04 Thread Thomas Passin
On 3/4/2023 11:38 AM, Gabor Urban wrote: Hi guys, I have a strange problem that I do not understand. I am testing function which returns a dictionary. The code should ensure that the keys of the dictionary are generated in a given order. I am testing the function with the standard unittest mo

Re: Testing list sequence question

2023-03-04 Thread Roel Schroeven
Gabor Urban schreef op 4/03/2023 om 17:38: Hi guys, I have a strange problem that I do not understand. I am testing function which returns a dictionary. The code should ensure that the keys of the dictionary are generated in a given order. I am testing the function with the standard unittest

Testing list sequence question

2023-03-04 Thread Gabor Urban
Hi guys, I have a strange problem that I do not understand. I am testing function which returns a dictionary. The code should ensure that the keys of the dictionary are generated in a given order. I am testing the function with the standard unittest module and use the assertListEqual statement t