tests: Really fix import.

pull/603/head
Paul Sokolovsky 2014-05-11 03:45:42 +03:00
rodzic b4acd028b6
commit ce6c10172b
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -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')