Skip to content

Commit

Permalink
skip compile on py3
Browse files Browse the repository at this point in the history
  • Loading branch information
gawel committed Mar 12, 2015
1 parent 119f6a5 commit 7251205
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests.py
@@ -1,17 +1,16 @@
# -*- coding: utf-8 -*-
import os
import sys
import shutil
import tempfile
import subprocess
import zc.buildout.configparser
from unittest import TestCase
from unittest import skipIf
from gp.recipe.node import Recipe
try:
# python 2
from StringIO import StringIO
except:
# python 3
from io import StringIO
from io import StringIO

PY3 = bool(sys.version_info[0] == 3)

BUILDOUT = """
[buildout]
Expand Down Expand Up @@ -76,6 +75,7 @@ def test_binaries(self):
output = output.decode('utf8')
self.assertTrue(output.startswith('lessc'))

@skipIf(not PY3, 'Compile only work with a py2 installed')
def test_compile(self):
output = self.callFTU('node2')
self.assertIn(os.path.join(self.wd, 'bin', 'node'), output)
Expand Down

0 comments on commit 7251205

Please sign in to comment.