CxxTest / cxxtest

CxxTest Unit Testing Framework
http://cxxtest.com
GNU Lesser General Public License v3.0
166 stars 79 forks source link

cxxtestgen errors #63

Closed LindaB closed 11 years ago

LindaB commented 11 years ago

I'm trying to get things set up. Directory cxxtest-src has MyTestSuitelh; under that is directory cxxtest and directory bin which contains cxxtestgen.

created MyTestSuite.h and compiled it

include <cxxtest/TestSuite.h>

class MyTestSuite1 : public CxxTest::TestSuite { public: void testAddition(void) { TS_ASSERT(1 + 1 > 1); TS_ASSERT_EQUALS(1 + 1, 2); } };

/cxxtest-src> bin/cxxtestgen --error-printer -o runner.cpp MyTestSuite1.h Traceback (most recent call last): File "bin/cxxtestgen", line 13, in ? import cxxtest File "/afs/rchland.ibm.com/usr6/lsb/public/ConcMaint/cxxtest-src/python/cxxtest/init.py", line 33, in ? from cxxtest.cxxtestgen import * File "/afs/rchland.ibm.com/usr6/lsb/public/ConcMaint/cxxtest-src/python/cxxtest/cxxtestgen.py", line 18 from . import release ^ SyntaxError: invalid syntax

What must I change to have this work?

whart222 commented 11 years ago

What version of python are you using?

LindaB commented 11 years ago

Python 2.4.2


Linda S. Birnbaum ( lsb@us.ibm.com ) PowerVM I/O Virtualization Development IBM Rochester (507) 253-7267


From: William Hart notifications@github.com To: CxxTest/cxxtest cxxtest@noreply.github.com, Cc: Linda Birnbaum/Rochester/IBM@IBMUS Date: 01/19/2013 12:26 AM Subject: Re: [cxxtest] cxxtestgen errors (#63)

What version of python are you using? — Reply to this email directly or view it on GitHub.

LindaB commented 11 years ago

Any help here? I'd really like to use cxx, but so far, I can't even get the basic test tor un

whart222 commented 11 years ago

I strongly suspect that the issue is your version of Python. Try running with Python 2.6 or 2.7.