Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
8c35f397
Commit
8c35f397
authored
May 02, 2016
by
Paul Sokolovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Update for _io/_collections module having been renamed.
parent
621c6442
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
10 additions
and
10 deletions
+10
-10
tests/basics/class_store_class.py
tests/basics/class_store_class.py
+1
-1
tests/basics/namedtuple1.py
tests/basics/namedtuple1.py
+1
-1
tests/basics/ordereddict1.py
tests/basics/ordereddict1.py
+1
-1
tests/bench/var-8-namedtuple-1st.py
tests/bench/var-8-namedtuple-1st.py
+1
-1
tests/bench/var-8.1-namedtuple-5th.py
tests/bench/var-8.1-namedtuple-5th.py
+1
-1
tests/io/buffered_writer.py
tests/io/buffered_writer.py
+1
-1
tests/io/stringio1.py
tests/io/stringio1.py
+1
-1
tests/io/stringio_with.py
tests/io/stringio_with.py
+1
-1
tests/misc/print_exception.py
tests/misc/print_exception.py
+1
-1
tests/misc/recursive_data.py
tests/misc/recursive_data.py
+1
-1
No files found.
tests/basics/class_store_class.py
View file @
8c35f397
...
...
@@ -5,7 +5,7 @@
try
:
from
collections
import
namedtuple
except
ImportError
:
from
_
collections
import
namedtuple
from
u
collections
import
namedtuple
_DefragResultBase
=
namedtuple
(
'DefragResult'
,
[
'foo'
,
'bar'
])
...
...
tests/basics/namedtuple1.py
View file @
8c35f397
try
:
from
collections
import
namedtuple
except
ImportError
:
from
_
collections
import
namedtuple
from
u
collections
import
namedtuple
T
=
namedtuple
(
"Tup"
,
[
"foo"
,
"bar"
])
# CPython prints fully qualified name, what we don't bother to do so far
...
...
tests/basics/ordereddict1.py
View file @
8c35f397
...
...
@@ -2,7 +2,7 @@ try:
from
collections
import
OrderedDict
except
ImportError
:
try
:
from
_
collections
import
OrderedDict
from
u
collections
import
OrderedDict
except
ImportError
:
print
(
"SKIP"
)
import
sys
...
...
tests/bench/var-8-namedtuple-1st.py
View file @
8c35f397
import
bench
from
_
collections
import
namedtuple
from
u
collections
import
namedtuple
T
=
namedtuple
(
"Tup"
,
[
"num"
,
"bar"
])
...
...
tests/bench/var-8.1-namedtuple-5th.py
View file @
8c35f397
import
bench
from
_
collections
import
namedtuple
from
u
collections
import
namedtuple
T
=
namedtuple
(
"Tup"
,
[
"foo1"
,
"foo2"
,
"foo3"
,
"foo4"
,
"num"
])
...
...
tests/io/buffered_writer.py
View file @
8c35f397
import
_
io
as
io
import
u
io
as
io
try
:
io
.
BytesIO
...
...
tests/io/stringio1.py
View file @
8c35f397
import
_
io
as
io
import
u
io
as
io
a
=
io
.
StringIO
()
print
(
'io.StringIO'
in
repr
(
a
))
...
...
tests/io/stringio_with.py
View file @
8c35f397
import
_
io
as
io
import
u
io
as
io
# test __enter__/__exit__
with
io
.
StringIO
()
as
b
:
...
...
tests/misc/print_exception.py
View file @
8c35f397
import
_
io
as
io
# uPy does not have io module builtin
import
u
io
as
io
# uPy does not have io module builtin
import
sys
if
hasattr
(
sys
,
'print_exception'
):
print_exception
=
sys
.
print_exception
...
...
tests/misc/recursive_data.py
View file @
8c35f397
# This tests that printing recursive data structure doesn't lead to segfault.
import
_
io
as
io
import
u
io
as
io
l
=
[
1
,
2
,
3
,
None
]
l
[
-
1
]
=
l
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment