Skip to content
Snippets Groups Projects
Commit ce6c1017 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests: Really fix import.

parent b4acd028
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,10 @@
# There was a bug in MicroPython that under some conditions class stored
# in instance attribute later was returned "bound" as if it was a method,
# which caused class constructor to receive extra argument.
from _collections import namedtuple
try:
from collections import namedtuple
except ImportError:
from _collections import namedtuple
_DefragResultBase = namedtuple('DefragResult', 'foo bar')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment