Re: [Repoze-dev] problems running chameleon tests

2010-06-03 Thread Chris Withers
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

2010-06-03 Thread Malthe Borch
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 ch...@simplistix.co.uk 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

2010-06-03 Thread Chris Withers
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

2010-06-03 Thread Malthe Borch
On 3 June 2010 12:37, Chris Withers ch...@simplistix.co.uk 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


[Repoze-dev] problems running chameleon tests

2010-06-02 Thread Chris Withers
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 wich...@wiggy.net
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 module
 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:
 html xmlns=http://www.w3.org/1999/xhtml;
   div xmlns:test=http://test/ns;
 span test:attr=testHello, world!/span
   /div
 /html
Got:
 html xmlns=http://www.w3.org/1999/xhtml;
 BLANKLINE
   div xmlns:test=http://test/ns;
 span test:attr=testHello, world!/span
   /div
 None
 /html


==
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 doctest i18n.txt[1], line 1, in module
 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) : uMock translation of 'test_msgid'.,
 (de, msg_id)  : uMock translation of 'msg_id'.,
 (de, tid): uMock translation of 'tid'.,
 (de, aid): uMock translation of 'aid'.,
 (de, Default): uMock translation of 'Default'.,
 (de, bananas): uMock translation of ${count} bananas.,
 (de, two_bananas): uIch will ${bananas} Bananen und 
${apples} \xc4pfels.,
 (de, month_may)  : uMai,
 (de, reg; lt;) : uGerman reg; lt;,
 (de, The Dutch)  : uDie Hollander,
 (de, missing_id) : umissing_id,
 (nl, size_advise): u${retailer} adviseert u ${size}.,
 (nl, size_advise_suggestion): umaat ${size},
 })
Exception raised:
 Traceback (most recent