Files
Andrey Vlasovskikh 9031552f27 Updated Python mock SDK from 2.5 to 2.7
The __namedtuple stub is now in __builtins__.
2013-02-12 20:59:07 +04:00

13 lines
358 B
Python

# Django hackery to load the appropriate version of unittest
try:
# check the system path first
from unittest2 import *
except ImportError:
if sys.version_info >= (2,7):
# unittest2 features are native in Python 2.7
from unittest import *
else:
# otherwise use our bundled version
from datetime import tzinfo