Re: [Repoze-dev] problems running chameleon tests
Malthe Borch wrote: > On 3 June 2010 12:37, Chris Withers wrote: >> How do you run the tests? > > python setup.py nosetests Ah, okay, didn't know about that. That works fine. It was the following that caused the problems: python setup.py test I'll use your suggestion from now on, no need for a 'test' extra_requires. cheers, Chris ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
Re: [Repoze-dev] problems running chameleon tests
On 6/3/10 11:37 , Chris Withers wrote: > Malthe Borch wrote: >> Really that's odd; > > How do you run the tests? Same as all (non-Zope) python packages: python setup.py test > Hmm, it occurs to me that even if the [test] extra_requires was there, I > don't know how to feed that into: > > python setup.py develop Why should that install test requirements? That is not what develop is for. Wichert. ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
Re: [Repoze-dev] problems running chameleon tests
On 3 June 2010 12:37, Chris Withers wrote: > How do you run the tests? python setup.py nosetests > Hmm, it occurs to me that even if the [test] extra_requires was there, I > don't know how to feed that into: > > python setup.py develop > > Any ideas? Not really right now; let me think it over. \malthe ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
Re: [Repoze-dev] problems running chameleon tests
Malthe Borch wrote: > Really that's odd; How do you run the tests? > we can definitely add a [test] on next release; or > please go ahead and commit it if you can. Hmm, it occurs to me that even if the [test] extra_requires was there, I don't know how to feed that into: python setup.py develop Any ideas? Chris ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
Re: [Repoze-dev] problems running chameleon tests
Really that's odd; we can definitely add a [test] on next release; or please go ahead and commit it if you can. Thanks, On 3 June 2010 09:50, Chris Withers wrote: > Malthe Borch wrote: >> >> This has to do with lxml; it currently worksforme, but I don't know >> why. Try Stephan's static build and see if it fares any better, >> possibly using otool -L to confirm bindings. > > Actually, the tests only run if you have *all* the stuff in the test_require > ;-) > > ...its' a shame there isn't a chameleon[test] to install when you want to > run tests, python setup.py test appears to install all the tests > dependencies for each test run :-( > > Chris > > -- Malthe Borch Technical Advisor UNICEF Uganda +256 (0) 703 945 965 ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
Re: [Repoze-dev] problems running chameleon tests
Malthe Borch wrote: > This has to do with lxml; it currently worksforme, but I don't know > why. Try Stephan's static build and see if it fares any better, > possibly using otool -L to confirm bindings. Actually, the tests only run if you have *all* the stuff in the test_require ;-) ...its' a shame there isn't a chameleon[test] to install when you want to run tests, python setup.py test appears to install all the tests dependencies for each test run :-( Chris ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
Re: [Repoze-dev] problems running chameleon tests
This has to do with lxml; it currently worksforme, but I don't know why. Try Stephan's static build and see if it fares any better, possibly using otool -L to confirm bindings. \malthe On 2 June 2010 20:26, Chris Withers wrote: > So, in an effort to create some tests for the chameleon.genshi problems I'm > having, I thought I'd run the current tests. > > On MacOSX this appears to fail for trunk right now. > > What am I doing wrong? > > Chris > > serato:chameleon chris$ svn info > Path: . > URL: http://svn.repoze.org/chameleon/trunk > Repository Root: http://svn.repoze.org > Repository UUID: 8f1d8bf8-68d2-4fbe-a113-2afb08c80ed9 > Revision: 9494 > Node Kind: directory > Schedule: normal > Last Changed Author: Wichert Akkerman > Last Changed Rev: 9493 > Last Changed Date: 2010-06-02 13:13:34 +0100 (Wed, 02 Jun 2010) > > serato:chameleon chris$ nose --version > -bash: nose: command not found > serato:chameleon chris$ ~/virtualenvs/repoze.bfg/bin/nosetests > .F...FFF.F.F..E > == > ERROR: Failure: ImportError (No module named lxml.builder) > -- > Traceback (most recent call last): > File > "/Users/chris/virtualenvs/repoze.bfg/lib/python2.6/site-packages/nose-0.11.3-py2.6.egg/nose/loader.py", > line 382, in loadTestsFromName > addr.filename, addr.module) > File > "/Users/chris/virtualenvs/repoze.bfg/lib/python2.6/site-packages/nose-0.11.3-py2.6.egg/nose/importer.py", > line 39, in importFromPath > return self.importFromDir(dir_path, fqname) > File > "/Users/chris/virtualenvs/repoze.bfg/lib/python2.6/site-packages/nose-0.11.3-py2.6.egg/nose/importer.py", > line 86, in importFromDir > mod = load_module(part_fqname, fh, filename, desc) > File "/Users/chris/LocalSVN/chameleon/src/chameleon/tests/test_i18nize.py", > line 3, in > from lxml.builder import ElementMaker > ImportError: No module named lxml.builder > > == > FAIL: Doctest: template.txt > -- > Traceback (most recent call last): > File > "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", > line 2152, in runTest > raise self.failureException(self.format_failure(new.getvalue())) > AssertionError: Failed doctest test for template.txt > File "/Users/chris/LocalSVN/chameleon/src/chameleon/core/template.txt", > line 0 > > -- > File "/Users/chris/LocalSVN/chameleon/src/chameleon/core/template.txt", line > 73, in template.txt > Failed example: > print result > Expected: > http://www.w3.org/1999/xhtml";> > http://test/ns";> > Hello, world! > > > Got: > http://www.w3.org/1999/xhtml";> > > http://test/ns";> > Hello, world! > > None > > > > == > FAIL: Doctest: i18n.txt > -- > Traceback (most recent call last): > File > "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", > line 2152, in runTest > raise self.failureException(self.format_failure(new.getvalue())) > AssertionError: Failed doctest test for i18n.txt > File "/Users/chris/LocalSVN/chameleon/src/chameleon/genshi/i18n.txt", line > 0 > > -- > File "/Users/chris/LocalSVN/chameleon/src/chameleon/genshi/i18n.txt", line > 16, in i18n.txt > Failed example: > from zope.i18n.simpletranslationdomain import SimpleTranslationDomain > Exception raised: > Traceback (most recent call last): > File > "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", > line 1248, in __run > compileflags, 1) in test.globs > File "", line 1, in > from zope.i18n.simpletranslationdomain import SimpleTranslationDomain > ImportError: No module named i18n.simpletranslationdomain > -- > File "/Users/chris/LocalSVN/chameleon/src/chameleon/genshi/i18n.txt", line > 17, in i18n.txt > Failed example: > td = SimpleTranslationDomain("test", { > ("de", "test_msgid") : u"Mock translation of 'test_msgid'.", > ("de", "msg_id") : u"Mock translation of 'msg_id'.", > ("de", "tid") : u"Mock translation of 'tid'.", > ("de", "aid") : u"Mock translation of 'aid'.", > ("de", "Default") : u"Mock translation of 'Default'.", > ("de", "bananas") : u"Mock translation of ${count} bananas.", > ("de", "two_bananas"): u"Ich will ${bananas} Bananen und ${apples} > \xc4pfels.", > ("de", "month_may") : u"Mai", > ("de", "® <") : u"German ® <", >
[Repoze-dev] problems running chameleon tests
So, in an effort to create some tests for the chameleon.genshi problems I'm having, I thought I'd run the current tests. On MacOSX this appears to fail for trunk right now. What am I doing wrong? Chris serato:chameleon chris$ svn info Path: . URL: http://svn.repoze.org/chameleon/trunk Repository Root: http://svn.repoze.org Repository UUID: 8f1d8bf8-68d2-4fbe-a113-2afb08c80ed9 Revision: 9494 Node Kind: directory Schedule: normal Last Changed Author: Wichert Akkerman Last Changed Rev: 9493 Last Changed Date: 2010-06-02 13:13:34 +0100 (Wed, 02 Jun 2010) serato:chameleon chris$ nose --version -bash: nose: command not found serato:chameleon chris$ ~/virtualenvs/repoze.bfg/bin/nosetests .F...FFF.F.F..E == ERROR: Failure: ImportError (No module named lxml.builder) -- Traceback (most recent call last): File "/Users/chris/virtualenvs/repoze.bfg/lib/python2.6/site-packages/nose-0.11.3-py2.6.egg/nose/loader.py", line 382, in loadTestsFromName addr.filename, addr.module) File "/Users/chris/virtualenvs/repoze.bfg/lib/python2.6/site-packages/nose-0.11.3-py2.6.egg/nose/importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "/Users/chris/virtualenvs/repoze.bfg/lib/python2.6/site-packages/nose-0.11.3-py2.6.egg/nose/importer.py", line 86, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/Users/chris/LocalSVN/chameleon/src/chameleon/tests/test_i18nize.py", line 3, in from lxml.builder import ElementMaker ImportError: No module named lxml.builder == FAIL: Doctest: template.txt -- Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", line 2152, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for template.txt File "/Users/chris/LocalSVN/chameleon/src/chameleon/core/template.txt", line 0 -- File "/Users/chris/LocalSVN/chameleon/src/chameleon/core/template.txt", line 73, in template.txt Failed example: print result Expected: http://www.w3.org/1999/xhtml";> http://test/ns";> Hello, world! Got: http://www.w3.org/1999/xhtml";> http://test/ns";> Hello, world! None == FAIL: Doctest: i18n.txt -- Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", line 2152, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for i18n.txt File "/Users/chris/LocalSVN/chameleon/src/chameleon/genshi/i18n.txt", line 0 -- File "/Users/chris/LocalSVN/chameleon/src/chameleon/genshi/i18n.txt", line 16, in i18n.txt Failed example: from zope.i18n.simpletranslationdomain import SimpleTranslationDomain Exception raised: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", line 1248, in __run compileflags, 1) in test.globs File "", line 1, in from zope.i18n.simpletranslationdomain import SimpleTranslationDomain ImportError: No module named i18n.simpletranslationdomain -- File "/Users/chris/LocalSVN/chameleon/src/chameleon/genshi/i18n.txt", line 17, in i18n.txt Failed example: td = SimpleTranslationDomain("test", { ("de", "test_msgid") : u"Mock translation of 'test_msgid'.", ("de", "msg_id") : u"Mock translation of 'msg_id'.", ("de", "tid"): u"Mock translation of 'tid'.", ("de", "aid"): u"Mock translation of 'aid'.", ("de", "Default"): u"Mock translation of 'Default'.", ("de", "bananas"): u"Mock translation of ${count} bananas.", ("de", "two_bananas"): u"Ich will ${bananas} Bananen und ${apples} \xc4pfels.", ("de", "month_may") : u"Mai", ("de", "® <") : u"German ® <", ("de", "The Dutch") : u"Die Hollander", ("de", "missing_id") : u"missing_id", ("nl", "size_advise"): u"${retailer} adviseert u ${size}.", ("nl", "size_advise_suggestion"): u"maat ${size}", }) Exception raised: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/