Commit 4cd2a847 authored by Jérome Perrin's avatar Jérome Perrin

import pysvn only when it's really used, to make it a "soft" dependancy


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17500 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 23218888
...@@ -163,7 +163,6 @@ import os ...@@ -163,7 +163,6 @@ import os
from cStringIO import StringIO from cStringIO import StringIO
from urllib import urlretrieve from urllib import urlretrieve
from glob import glob from glob import glob
import pysvn
portal_name = 'erp5_portal' portal_name = 'erp5_portal'
...@@ -211,6 +210,7 @@ class ERP5TypeTestCase(PortalTestCase): ...@@ -211,6 +210,7 @@ class ERP5TypeTestCase(PortalTestCase):
def getRevision(self): def getRevision(self):
try: try:
import pysvn
return pysvn.Client().info('%s/Products/ERP5' return pysvn.Client().info('%s/Products/ERP5'
% os.environ['INSTANCE_HOME']).revision.number % os.environ['INSTANCE_HOME']).revision.number
except: except:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment