diff rhodecode/lib/compat.py @ 3872:2b9da8749065 beta

Use unittest2 for testing
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 19 May 2013 15:42:08 +0200
parents d7488551578e
children ffd45b185016
line wrap: on
line diff
--- a/rhodecode/lib/compat.py	Sun May 19 16:08:21 2013 +0200
+++ b/rhodecode/lib/compat.py	Sun May 19 15:42:08 2013 +0200
@@ -32,6 +32,10 @@
 #==============================================================================
 from rhodecode.lib.ext_json import json
 
+if __py_version__ >= (2, 7):
+    import unittest
+else:
+    import unittest2 as unittest
 
 #==============================================================================
 # izip_longest