Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.8.13.alpha0: libs/cremona/constructor.py doctest failures #1204

Closed
sagetrac-mabshoff mannequin opened this issue Nov 18, 2007 · 2 comments
Closed

2.8.13.alpha0: libs/cremona/constructor.py doctest failures #1204

sagetrac-mabshoff mannequin opened this issue Nov 18, 2007 · 2 comments

Comments

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Nov 18, 2007

Fixed in 2.8.13.alpha1.

sage -t  devel/sage-main/sage/libs/cremona/constructor.py   **********************************************************************
File "constructor.py", line 42:
    sage: M = CremonaModularSymbols(-1)
Expected:
    Traceback (most recent call last):
    ...
    ValueError: the level (= -1) must be a positive integer
Got:
    Traceback (most recent call last):
      File "/tmp/Work-mabshoff/release-cycles/sage-2.8.13.alpha0/local/lib/python2.5/doctest.py", line 1212, in __run
        compileflags, 1) in test.globs
      File "<doctest __main__.example_0[4]>", line 1, in <module>
        M = CremonaModularSymbols(-Integer(1))###line 42:
    sage: M = CremonaModularSymbols(-1)
      File "/tmp/Work-mabshoff/release-cycles/sage-2.8.13.alpha0/local/lib/python2.5/site-packages/sage/libs/cremona/constructor.py", line 64, in CremonaModularSymbols
        return ModularSymbols(level=level, sign=sign, cuspidal=cuspidal, verbose=verbose)
      File "homspace.pyx", line 25, in sage.libs.cremona.homspace.ModularSymbols.__init__
        raise ValueError, "the level (= %s) must be at least 2"%level
    ValueError: the level (= -1) must be at least 2
**********************************************************************
File "constructor.py", line 46:
    sage: M = CremonaModularSymbols(0)
Expected:
    Traceback (most recent call last):
    ...
    ValueError: the level (= 0) must be a positive integer
Got:
    Traceback (most recent call last):
      File "/tmp/Work-mabshoff/release-cycles/sage-2.8.13.alpha0/local/lib/python2.5/doctest.py", line 1212, in __run
        compileflags, 1) in test.globs
      File "<doctest __main__.example_0[5]>", line 1, in <module>
        M = CremonaModularSymbols(Integer(0))###line 46:
    sage: M = CremonaModularSymbols(0)
      File "/tmp/Work-mabshoff/release-cycles/sage-2.8.13.alpha0/local/lib/python2.5/site-packages/sage/libs/cremona/constructor.py", line 64, in CremonaModularSymbols
        return ModularSymbols(level=level, sign=sign, cuspidal=cuspidal, verbose=verbose)
      File "homspace.pyx", line 25, in sage.libs.cremona.homspace.ModularSymbols.__init__
        raise ValueError, "the level (= %s) must be at least 2"%level
    ValueError: the level (= 0) must be at least 2
**********************************************************************

Component: doctest coverage

Issue created by migration from https://trac.sagemath.org/ticket/1204

@sagetrac-mabshoff sagetrac-mabshoff mannequin added this to the sage-2.8.13 milestone Nov 18, 2007
@sagetrac-mabshoff
Copy link
Mannequin Author

sagetrac-mabshoff mannequin commented Nov 19, 2007

comment:1
[01:37] <was_> In fact, now that I think about it, I think I changed the value error slightly.  Oops.
[01:37] <mabshoff> :)
[01:37] <was_> Feel free to just change the doctests in your code.  My mistake.
[01:37] <mabshoff> Ok, it was "ValueError: the level (= -1) must be at least 2" but it is now 
[01:38] <mabshoff> "ValueError: the level (= -1) must be a positive integer"
[01:43] <mabshoff> Ok, when I changed the Valueerror the doctest in sage -t  devel/sage-main/sage/libs/cremona/constructor.py passes
[01:43] <mabshoff> Does it really have to be \geq 2 or just postive?
[01:43] <was_> In theory the level must be >= 1.
[01:44] <was_> In Cremona's program, he didn't do level 1 correctly (it crashes), so it must be >= 2 for Cremona.
[01:44] <mabshoff> ok
[01:44] <was_> Level 1 just gives the 0 space anyways, so no problem.

Michael

@sagetrac-mabshoff

This comment has been minimized.

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Nov 19, 2007
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants