diff --git a/openerp-server b/openerp-server
index be0710cbce974cf63d77cab53f153821cf8c83b3..65073b22798af2bafd1da93bc56203e0092e3f2d 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 b1076e830eed819e90614fd7c33d316cf51a74ad..cbb1a347038a7f347cfb2ee34bf0a64f02940ba9 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()