I'm having a weird problem, I think with the test framework.

I have a clean build of 2.10.1, and clone a new branch.

In this branch, I can do ./sage -t devel/sage/sage/rings/arith.py,  
and all tests pass.

Now I edit that file arith.py. At line 874, I change

         sage: random_prime(100000)
         54601

to

         sage: p = random_prime(100000); p
         54601

Then I do sage -b, and the same sage -t command again. Now I get:

sage -t  devel/sage-2128/sage/rings/arith.py                 
**********************************************************************
File "arith.py", line 874:
     sage: _= p = random_prime(100000); p
Expected nothing
Got:
     22073
**********************************************************************
1 items had failures:
    1 of   2 in __main__.example_19
***Test Failed*** 1 failures.
For whitespace errors, see the file .doctest_arith.py
          [5.2 s]
exit code: 256

What is going on here?

(I ran into this while trying to write a patch for http:// 
sagetrac.org/sage_trac/ticket/2128)

This is an intel macbook, OS 10.4.11.

david


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to