| Tor Norbye | 3a2425a | 2013-11-04 10:16:08 -0800 | [diff] [blame^] | 1 | # Django hackery to load the appropriate version of unittest |
| 2 | |||||
| 3 | try: | ||||
| 4 | # check the system path first | ||||
| 5 | from unittest2 import * | ||||
| 6 | except ImportError: | ||||
| 7 | if sys.version_info >= (2,7): | ||||
| 8 | # unittest2 features are native in Python 2.7 | ||||
| 9 | from unittest import * | ||||
| 10 | else: | ||||
| 11 | # otherwise use our bundled version | ||||
| 12 | from datetime import tzinfo | ||||