Skip to content

Commit

Permalink
Of course test failed on py2.6 !
Browse files Browse the repository at this point in the history
  • Loading branch information
Georges Racinet committed Oct 1, 2015
1 parent 3002b80 commit 449dc8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions anybox/recipe/odoo/tests/test_integration_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from zc.buildout.easy_install import Installer, buildout_and_setuptools_path

TEST_DIR = os.path.dirname(__file__)
EGG_SUFFIX = '-py%d.%d.egg' % sys.version_info[:2]


class IntegrationTestCase(unittest.TestCase):
Expand Down Expand Up @@ -89,7 +90,7 @@ def test_requirements_file_integration_with_versions(self):

with open(os.path.join('bin', 'start_odoo')) as f:
start_odoo = f.read()
self.assertTrue('foobar-0.0.4-py2.7.egg' in start_odoo)
self.assertTrue('foobar-0.0.4' + EGG_SUFFIX in start_odoo)
self.assertFalse('foobar-0.0.3'in start_odoo)

def test_requirements_file_integration(self):
Expand All @@ -99,5 +100,5 @@ def test_requirements_file_integration(self):

with open(os.path.join('bin', 'start_odoo')) as f:
start_odoo = f.read()
self.assertTrue('foobar-0.0.3-py2.7.egg' in start_odoo)
self.assertTrue('foobar-0.0.3' + EGG_SUFFIX in start_odoo)
self.assertFalse('foobar-0.0.4'in start_odoo)

0 comments on commit 449dc8c

Please sign in to comment.