Skip to content

Commit 6983428

Browse files
improved test
1 parent 52cef9f commit 6983428

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

bpython/test/test_import_not_cyclical.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,18 @@ def setUp(self):
5757
)
5858

5959
self.foo = list(find_modules(os.path.abspath(import_test_folder)))
60-
self.counter = 0
6160
self.filepaths = [
6261
"Left",
6362
"Level0.Level1.Level2",
6463
"Level0.Level1",
6564
"Level0",
66-
"Right",
65+
"Right"
6766
]
6867

6968
def test_simple_symbolic_link_loop(self):
7069
for thing in self.foo:
71-
self.assertEqual(thing, self.filepaths[self.counter])
72-
self.counter = self.counter + 1
70+
self.assertTrue(thing in self.filepaths)
71+
self.filepaths.remove(thing)
7372

7473

7574
if __name__ == "__main__":

0 commit comments

Comments
 (0)