On Sep 20, 1:25 am, Mitesh Patel <[email protected]> wrote: > On 09/18/2010 05:39 AM, Johan S. R. Nielsen wrote: > > > > > I downloaded the Sage 4.5.3 source, compiled everything and ran a > > doctest (./sage -testall) immediately afterwards. I guess everything > > should run smoothly, but surprisingly, there were two failures: > > > ----- > > sage -t "devel/sage/sage/misc/explain_pickle.py" > > ********************************************************************** > > File "/home/jsrn/local/sage/sage-4.5.3/devel/sage/sage/misc/ > > explain_pickle.py", line 968: > > sage: test_pickle(u'hi\u1234\U00012345') > > Exception raised: > > Traceback (most recent call last): > > File "/home/jsrn/local/sage/sage-4.5.3/local/bin/ncadoctest.py", > > line 1231, in run_one_test > > self.run_one_example(test, example, filename, compileflags) > > File "/home/jsrn/local/sage/sage-4.5.3/local/bin/ > > sagedoctest.py", line 38, in run_one_example > > OrigDocTestRunner.run_one_example(self, test, example, > > filename, compileflags) > > File "/home/jsrn/local/sage/sage-4.5.3/local/bin/ncadoctest.py", > > line 1172, in run_one_example > > compileflags, 1) in test.globs > > File "<doctest __main__.example_32[3]>", line 1, in <module> > > test_pickle(u'hi\u1234\U00012345')###line 968: > > sage: test_pickle(u'hi\u1234\U00012345') > > File "/home/jsrn/local/sage/sage-4.5.3/local/lib/python/site- > > packages/sage/misc/explain_pickle.py", line 2678, in test_pickle > > p = dumps(p, compress=False) > > File "sage_object.pyx", line 787, in > > sage.structure.sage_object.dumps (sage/structure/sage_object.c:8242) > > File "sage_object.pyx", line 970, in > > sage.structure.sage_object.picklejar (sage/structure/sage_object.c: > > 9771) > > UnicodeEncodeError: 'ascii' codec can't encode characters in > > position 2-3: ordinal not in range(128) > > ********************************************************************** > > 1 items had failures: > > 1 of 4 in __main__.example_32 > > ***Test Failed*** 1 failures. > > For whitespace errors, see the file /home/jsrn/.sage// > > tmp/.doctest_explain_pickle.py > > ------ > > > and > > > ------ > > sage -t "devel/sage/sage/combinat/iet/reduced.py" > > ********************************************************************** > > File "/home/jsrn/local/sage/sage-4.5.3/devel/sage/sage/combinat/iet/ > > reduced.py", line 89: > > sage: loads(dumps(p)) == p > > Exception raised: > > Traceback (most recent call last): > > File "/home/jsrn/local/sage/sage-4.5.3/local/bin/ncadoctest.py", > > line 1231, in run_one_test > > self.run_one_example(test, example, filename, compileflags) > > File "/home/jsrn/local/sage/sage-4.5.3/local/bin/ > > sagedoctest.py", line 38, in run_one_example > > OrigDocTestRunner.run_one_example(self, test, example, > > filename, compileflags) > > File "/home/jsrn/local/sage/sage-4.5.3/local/bin/ncadoctest.py", > > line 1172, in run_one_example > > compileflags, 1) in test.globs > > File "<doctest __main__.example_2[4]>", line 1, in <module> > > loads(dumps(p)) == p###line 89: > > sage: loads(dumps(p)) == p > > File "sage_object.pyx", line 787, in > > sage.structure.sage_object.dumps (sage/structure/sage_object.c:8242) > > File "sage_object.pyx", line 970, in > > sage.structure.sage_object.picklejar (sage/structure/sage_object.c: > > 9771) > > File "sage_object.pyx", line 101, in > > sage.structure.sage_object.SageObject.__repr__ (sage/structure/ > > sage_object.c:1370) > > File "/home/jsrn/local/sage/sage-4.5.3/local/lib/python/site- > > packages/sage/combinat/iet/template.py", line 305, in _repr_ > > return str(f(*self._repr_options)) > > File "/home/jsrn/local/sage/sage-4.5.3/local/lib/python/site- > > packages/sage/combinat/iet/template.py", line 351, in str > > l = self.list() > > File "/home/jsrn/local/sage/sage-4.5.3/local/lib/python/site- > > packages/sage/combinat/iet/reduced.py", line 512, in list > > a0 = map(self._alphabet.unrank, range(0,len(self))) > > AttributeError: 'NoneType' object has no attribute 'unrank' > > ********************************************************************** > > 1 items had failures: > > 1 of 12 in __main__.example_2 > > ***Test Failed*** 1 failures. > > ----- > > > Can anyone explain this? Should there be created Tracs for fixing it, > > or am I missing something? > > I am running Ubuntu 10.4, 64bit on a Thinkpad t410 with Intel i7 > > quadcore processor. > > Just to check: What happens if you rerun these tests? > > $ cd SAGE_ROOT > $ ./sage -t "devel/sage/sage/misc/explain_pickle.py" > $ ./sage -t "devel/sage/sage/combinat/iet/reduced.py"
Excellent question - naively, I hadn't thought of trying that. In fact, both tests pass on every rerun. This is kind of scary except if someone has a good explanation. -- To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
