#39 new
Hans-Peter Jansen

test_invalid_octal fails

Reported by Hans-Peter Jansen | August 15th, 2013 @ 04:41 PM

Hi,

I'm in the process of packaging python-spidermonkey for openSUSE.
We try to run the tests on every build in order to catch issues early.

All tests succeed but this one:

[ 39s] ...........................................................................................F............... [ 39s] ====================================================================== [ 39s] FAIL: test-syntax-error.test_invalid_octal [ 39s] ---------------------------------------------------------------------- [ 39s] Traceback (most recent call last): [ 39s] File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest [ 39s] self.test(*self.arg) [ 39s] File "/usr/lib/python2.7/site-packages/nose/util.py", line 613, in newfunc [ 39s] return func(*arg, **kw) [ 39s] File "/home/abuild/rpmbuild/BUILD/python-spidermonkey-0.0.10/tests/t.py", line 12, in run [ 39s] func(*self.args()) [ 39s] File "/home/abuild/rpmbuild/BUILD/python-spidermonkey-0.0.10/tests/test-syntax-error.py", line 14, in test_invalid_octal [ 39s] t.raises(t.JSError, cx.execute, "09;") [ 39s] File "/home/abuild/rpmbuild/BUILD/python-spidermonkey-0.0.10/tests/t.py", line 76, in raises [ 39s] func_name, exctype.__name__)) [ 39s] AssertionError: Function did not raise JSError [ 39s] [ 39s] Name Stmts Miss Cover Missing [ 39s] ------------------------------------------------ [ 39s] encodings.utf_16 78 78 0% 9-118 [ 39s] t 58 2 97% 16, 54 [ 39s] ------------------------------------------------ [ 39s] TOTAL 136 80 41%
[ 39s] ---------------------------------------------------------------------- [ 39s] Ran 107 tests in 5.018s

Any idea, what's wrong here?

Comments and changes to this ticket

  • Paul J. Davis

    Paul J. Davis August 17th, 2013 @ 01:26 PM

    What version of SpiderMonkey are you using? If you have an interpreter built you can try the test which is just:

    09;
    

    Which should throw an error. If not then we'll need to adjust the test.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Python/JavaScript bridge module, making use of Mozilla's spidermonkey JavaScript implementation. Allows implementation of JavaScript classes, objects and functions in Python, and evaluation and calling of JavaScript scripts and functions respectively. Borrows heavily from Claes Jacobssen's Javascript Perl module, in turn based on Mozilla's 'PerlConnect' Perl binding.

People watching this ticket

Pages