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

Fix optional magma tests #13885

Open
robertwb opened this issue Dec 29, 2012 · 7 comments
Open

Fix optional magma tests #13885

robertwb opened this issue Dec 29, 2012 · 7 comments

Comments

@robertwb
Copy link
Contributor

There are, once again, a huge number of failures.

CC: @videlec @slel

Component: interfaces: optional

Keywords: interface, pexpect, doctesting, magma

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

@robertwb
Copy link
Contributor Author

comment:1

So this doesn't happen again, re-enable these via #13540.

egrep -l -r 'optional.*magma' devel/sage/sage | egrep '\.pyx?' | xargs ./sage -tp 10 --only-optional=magma
[...]
	sage -t --only-optional=magma devel/sage/sage/rings/number_field/number_field_element.pyx # 2 doctests failed
	sage -t --only-optional=magma devel/sage/sage/rings/polynomial/multi_polynomial_sequence.py # 1 doctests failed
	sage -t --only-optional=magma devel/sage/sage/rings/polynomial/multi_polynomial_ideal.py # 1 doctests failed
	sage -t --only-optional=magma devel/sage/sage/rings/number_field/number_field.py # 4 doctests failed
	sage -t --only-optional=magma devel/sage/sage/coding/linear_code.py # 1 doctests failed
	sage -t --only-optional=magma devel/sage/sage/rings/polynomial/pbori.pyx # 3 doctests failed
	sage -t --only-optional=magma devel/sage/sage/crypto/mq/mpolynomialsystem.py # 1 doctests failed
	sage -t --only-optional=magma devel/sage/sage/algebras/quatalg/quaternion_algebra.py # 2 doctests failed
	sage -t --only-optional=magma devel/sage/sage/rings/polynomial/term_order.py # 1 doctests failed
	sage -t --only-optional=magma devel/sage/sage/rings/polynomial/multi_polynomial_ring_generic.pyx # 5 doctests failed
	sage -t --only-optional=magma devel/sage/sage/schemes/plane_conics/con_field.py # 14 doctests failed
	sage -t --only-optional=magma devel/sage/sage/rings/integer_ring.pyx # 1 doctests failed
	sage -t --only-optional=magma devel/sage/sage/interfaces/magma.py # 20 doctests failed
	sage -t --only-optional=magma devel/sage/sage/schemes/plane_conics/con_number_field.py # 1 doctests failed

@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@videlec videlec modified the milestones: sage-6.4, sage-7.2 Apr 13, 2016
@mmasdeu
Copy link
Contributor

mmasdeu commented Apr 15, 2016

comment:8

I think this is more like a problem with the testing framework. Here is a sample block that fails the test:

sage: C = codes.HammingCode(3,GF(2))
sage: Cm = magma(C)                 # optional - magma, indirect doctest
sage: Cm.MinimumWeight()            # optional - magma
3

The problem with this (and I suspect most of the others) is that when the --only-optional=magma flag prevents the first line in the block above to get executed, and thus C remains undefined and causes a failure in the second line.

I think that having to write the # optional - magma thing in each line of a block is quite awful. It would be better that the --only-optional=magma flag ran (in full) those blocks containing at least one # optional - magma line.

I don't know how to do this myself, though...

@videlec
Copy link
Contributor

videlec commented Apr 15, 2016

comment:9

The proper way to run magma doctest is with sage -t -optional=magma,sage. The optional sage applies to line without # optional.

@nexttime
Copy link
Mannequin

nexttime mannequin commented Aug 29, 2016

comment:10

Replying to @videlec:

The proper way to run magma doctest is with sage -t -optional=magma,sage. The optional sage applies to line without # optional.

Is this documented well?


Is there still a problem, or can we close this ticket? (I think I've seen some more recent one regarding the Magma interface, but I'm not sure.)

@nexttime
Copy link
Mannequin

nexttime mannequin commented Aug 29, 2016

Changed keywords from none to interface pexpect doctesting

@nexttime nexttime mannequin modified the milestones: sage-7.2, sage-7.4 Aug 29, 2016
@nexttime nexttime mannequin added the s: needs info label Aug 29, 2016
@slel
Copy link
Member

slel commented Aug 30, 2016

Changed keywords from interface pexpect doctesting to interface, pexpect, doctesting, magma

@slel
Copy link
Member

slel commented Aug 30, 2016

comment:11

Such more recent tickets might include

See also trac queries

I can't answer @nexttime's questions, but someone should.

@slel slel changed the title Fix optional magma tests. Fix optional magma tests Aug 30, 2016
@mkoeppe mkoeppe removed this from the sage-7.4 milestone Dec 29, 2022
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

7 participants