FAIL: test_list_type_names (cdist.test.cdist_type.TypeTestCase) #226

Closed
opened 2021-11-20 15:21:54 +00:00 by ungleich-gitea · 1 comment

Created by: dheule

On my laptop this test sometimes fails,
I think the test is for nothing, since it denpends on the order witch os.listdir return.
From python manual:

os.listdir(path)

Return a list containing the names of the entries in the directory given by path. The list is in arbitrary order.

I am wrong ?

*Created by: dheule* On my laptop this test sometimes fails, I think the test is for nothing, since it denpends on the order witch os.listdir return. From python manual: ### os.listdir(path) Return a list containing the names of the entries in the directory given by path. The list is in **arbitrary** order. I am wrong ?
Author
Owner

Created by: telmich

You are right, it should be sorted!

dheule [Thu, Feb 06, 2014 at 12:02:10PM -0800]:

On my laptop this test sometimes fails,
I think the test is for nothing, since it denpends on the order witch os.listdir return.
From python manual:

os.listdir(path)

Return a list containing the names of the entries in the directory given by path. The list is in arbitrary order.

I am wrong ?


Reply to this email directly or view it on GitHub:
https://github.com/telmich/cdist/issues/287

PGP key: 7ED9 F7D3 6B10 81D7 0EC5 5C09 D7DC C8E4 3187 7DF0

*Created by: telmich* You are right, it should be sorted! dheule [Thu, Feb 06, 2014 at 12:02:10PM -0800]: > On my laptop this test sometimes fails, > I think the test is for nothing, since it denpends on the order witch os.listdir return. > From python manual: > > ### os.listdir(path) > > Return a list containing the names of the entries in the directory given by path. The list is in **arbitrary** order. > > I am wrong ? > > --- > > Reply to this email directly or view it on GitHub: > https://github.com/telmich/cdist/issues/287 ## PGP key: 7ED9 F7D3 6B10 81D7 0EC5 5C09 D7DC C8E4 3187 7DF0
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#226
No description provided.