Skip to content

Commit

Permalink
tests: Update for _io/_collections module having been renamed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Sokolovsky committed May 2, 2016
1 parent 621c644 commit 8c35f39
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tests/basics/class_store_class.py
Expand Up @@ -5,7 +5,7 @@
try:
from collections import namedtuple
except ImportError:
from _collections import namedtuple
from ucollections import namedtuple

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

Expand Down
2 changes: 1 addition & 1 deletion tests/basics/namedtuple1.py
@@ -1,7 +1,7 @@
try:
from collections import namedtuple
except ImportError:
from _collections import namedtuple
from ucollections import namedtuple

T = namedtuple("Tup", ["foo", "bar"])
# CPython prints fully qualified name, what we don't bother to do so far
Expand Down
2 changes: 1 addition & 1 deletion tests/basics/ordereddict1.py
Expand Up @@ -2,7 +2,7 @@
from collections import OrderedDict
except ImportError:
try:
from _collections import OrderedDict
from ucollections import OrderedDict
except ImportError:
print("SKIP")
import sys
Expand Down
2 changes: 1 addition & 1 deletion tests/bench/var-8-namedtuple-1st.py
@@ -1,5 +1,5 @@
import bench
from _collections import namedtuple
from ucollections import namedtuple

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

Expand Down
2 changes: 1 addition & 1 deletion tests/bench/var-8.1-namedtuple-5th.py
@@ -1,5 +1,5 @@
import bench
from _collections import namedtuple
from ucollections import namedtuple

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

Expand Down
2 changes: 1 addition & 1 deletion tests/io/buffered_writer.py
@@ -1,4 +1,4 @@
import _io as io
import uio as io

try:
io.BytesIO
Expand Down
2 changes: 1 addition & 1 deletion tests/io/stringio1.py
@@ -1,4 +1,4 @@
import _io as io
import uio as io

a = io.StringIO()
print('io.StringIO' in repr(a))
Expand Down
2 changes: 1 addition & 1 deletion tests/io/stringio_with.py
@@ -1,4 +1,4 @@
import _io as io
import uio as io

# test __enter__/__exit__
with io.StringIO() as b:
Expand Down
2 changes: 1 addition & 1 deletion tests/misc/print_exception.py
@@ -1,4 +1,4 @@
import _io as io # uPy does not have io module builtin
import uio as io # uPy does not have io module builtin
import sys
if hasattr(sys, 'print_exception'):
print_exception = sys.print_exception
Expand Down
2 changes: 1 addition & 1 deletion tests/misc/recursive_data.py
@@ -1,5 +1,5 @@
# This tests that printing recursive data structure doesn't lead to segfault.
import _io as io
import uio as io

l = [1, 2, 3, None]
l[-1] = l
Expand Down

0 comments on commit 8c35f39

Please sign in to comment.