Commits

Fredrik Håård committed 35c73ab

Update tests

Comments (0)

Files changed (3)

 # -*- coding: utf-8 -*-
-from __future__ import print_function, unicode_literals
+from __future__ import print_function, unicode_literals, with_statement
 from subprocess import Popen, STDOUT, PIPE
 try:
     from urllib import unquote
     from urllib.parse import unquote
 import re
 import os.path
-import json #for reading logs
+try:
+    import json #for reading logs
+except:
+    import simplejson as json
+
 
 class Revision(object):
     """A representation of a revision.
+from __future__ import with_statement
 import unittest, doctest
 import os, shutil, os.path
 import hgapi 
 [tox]
-envlist = py27, py32
+envlist = py26, py27, py32
 [testenv]
 commands=python hgapi/testhgapi.py