Skip to content

Commit 8c35f39

Browse files
committed
tests: Update for _io/_collections module having been renamed.
1 parent 621c644 commit 8c35f39

10 files changed

Lines changed: 10 additions & 10 deletions

tests/basics/class_store_class.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
try:
66
from collections import namedtuple
77
except ImportError:
8-
from _collections import namedtuple
8+
from ucollections import namedtuple
99

1010
_DefragResultBase = namedtuple('DefragResult', [ 'foo', 'bar' ])
1111

tests/basics/namedtuple1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
try:
22
from collections import namedtuple
33
except ImportError:
4-
from _collections import namedtuple
4+
from ucollections import namedtuple
55

66
T = namedtuple("Tup", ["foo", "bar"])
77
# CPython prints fully qualified name, what we don't bother to do so far

tests/basics/ordereddict1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from collections import OrderedDict
33
except ImportError:
44
try:
5-
from _collections import OrderedDict
5+
from ucollections import OrderedDict
66
except ImportError:
77
print("SKIP")
88
import sys

tests/bench/var-8-namedtuple-1st.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import bench
2-
from _collections import namedtuple
2+
from ucollections import namedtuple
33

44
T = namedtuple("Tup", ["num", "bar"])
55

tests/bench/var-8.1-namedtuple-5th.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import bench
2-
from _collections import namedtuple
2+
from ucollections import namedtuple
33

44
T = namedtuple("Tup", ["foo1", "foo2", "foo3", "foo4", "num"])
55

tests/io/buffered_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import _io as io
1+
import uio as io
22

33
try:
44
io.BytesIO

tests/io/stringio1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import _io as io
1+
import uio as io
22

33
a = io.StringIO()
44
print('io.StringIO' in repr(a))

tests/io/stringio_with.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import _io as io
1+
import uio as io
22

33
# test __enter__/__exit__
44
with io.StringIO() as b:

tests/misc/print_exception.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import _io as io # uPy does not have io module builtin
1+
import uio as io # uPy does not have io module builtin
22
import sys
33
if hasattr(sys, 'print_exception'):
44
print_exception = sys.print_exception

tests/misc/recursive_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This tests that printing recursive data structure doesn't lead to segfault.
2-
import _io as io
2+
import uio as io
33

44
l = [1, 2, 3, None]
55
l[-1] = l

0 commit comments

Comments
 (0)