From f3742f0558f4cf2ef94bfa513008d7050e07af40 Mon Sep 17 00:00:00 2001
From: Vo Minh Thu <vmt@openerp.com>
Date: Mon, 3 Sep 2012 16:59:29 +0200
Subject: [PATCH] [FIX] test_ir_sequence: reduce the number of call to next()
 (to reduce test time).

bzr revid: vmt@openerp.com-20120903145929-p4kp6eotkcflletk
---
 openerp-server                    | 2 +-
 openerp/tests/test_ir_sequence.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/openerp-server b/openerp-server
index be0710cbce97..65073b22798a 100755
--- a/openerp-server
+++ b/openerp-server
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # -*- coding: utf-8 -*-
 ##############################################################################
 #
diff --git a/openerp/tests/test_ir_sequence.py b/openerp/tests/test_ir_sequence.py
index b1076e830eed..cbb1a347038a 100644
--- a/openerp/tests/test_ir_sequence.py
+++ b/openerp/tests/test_ir_sequence.py
@@ -186,7 +186,7 @@ class test_ir_sequence_generate(unittest2.TestCase):
 
         cr = cursor()
         f = lambda *a: registry('ir.sequence').next_by_code(cr, ADMIN_USER_ID, 'test_sequence_type_5', {})
-        assert all(str(x) == f() for x in xrange(1,1000))
+        assert all(str(x) == f() for x in xrange(1,10))
         cr.commit()
         cr.close()
 
@@ -204,7 +204,7 @@ class test_ir_sequence_generate(unittest2.TestCase):
 
         cr = cursor()
         f = lambda *a: registry('ir.sequence').next_by_code(cr, ADMIN_USER_ID, 'test_sequence_type_6', {})
-        assert all(str(x) == f() for x in xrange(1,1000))
+        assert all(str(x) == f() for x in xrange(1,10))
         cr.commit()
         cr.close()
 
-- 
GitLab