Skip to content

Commit 9a8f47b

Browse files
authored
Merge pull request RustPython#1904 from RustPython/coolreader18/zipimport
Add zipimport to allow importing from zip files
2 parents c2e52c2 + e65a5ed commit 9a8f47b

File tree

9 files changed

+2660
-62
lines changed

9 files changed

+2660
-62
lines changed

Lib/optparse.py

Lines changed: 1681 additions & 0 deletions
Large diffs are not rendered by default.

Lib/test/test_iter.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,6 @@ def test_iter_file(self):
366366
pass
367367

368368
# Test list()'s use of iterators.
369-
# TODO: RUSTPYTHON
370-
@unittest.expectedFailure
371369
def test_builtin_list(self):
372370
self.assertEqual(list(SequenceClass(5)), list(range(5)))
373371
self.assertEqual(list(SequenceClass(0)), [])
@@ -399,8 +397,6 @@ def test_builtin_list(self):
399397
pass
400398

401399
# Test tuples()'s use of iterators.
402-
# TODO: RUSTPYTHON
403-
@unittest.expectedFailure
404400
def test_builtin_tuple(self):
405401
self.assertEqual(tuple(SequenceClass(5)), (0, 1, 2, 3, 4))
406402
self.assertEqual(tuple(SequenceClass(0)), ())
@@ -479,8 +475,6 @@ def __next__(self):
479475
self.assertEqual(list(filter(lambda x: not x, iter(seq))), [bFalse]*25)
480476

481477
# Test max() and min()'s use of iterators.
482-
# TODO: RUSTPYTHON
483-
@unittest.expectedFailure
484478
def test_builtin_max_min(self):
485479
self.assertEqual(max(SequenceClass(5)), 4)
486480
self.assertEqual(min(SequenceClass(5)), 0)
@@ -664,8 +658,6 @@ def __next__(self):
664658
pass
665659

666660
# Test iterators with 'x in y' and 'x not in y'.
667-
# TODO: RUSTPYTHON
668-
@unittest.expectedFailure
669661
def test_in_and_not_in(self):
670662
for sc5 in IteratingSequenceClass(5), SequenceClass(5):
671663
for i in range(5):
@@ -707,8 +699,6 @@ def test_in_and_not_in(self):
707699
pass
708700

709701
# Test iterators with operator.countOf (PySequence_Count).
710-
# TODO: RUSTPYTHON
711-
@unittest.expectedFailure
712702
def test_countOf(self):
713703
from operator import countOf
714704
self.assertEqual(countOf([1,2,2,3,2,5], 2), 3)

0 commit comments

Comments
 (0)