New Python 3 error, I believe due to #27573:

$ ./sage -t src/sage/crypto/block_cipher/present.py 
Running doctests with ID 2019-08-25-19-01-54-53160391.
Git branch: develop
Using --optional=build,dochtml,python2,sage
Doctesting 1 file.
sage -t --warn-long 61.3 src/sage/crypto/block_cipher/present.py
**********************************************************************
File "src/sage/crypto/block_cipher/present.py", line 42, in 
sage.crypto.block_cipher.present
Failed example:
    cipher.sbox = SBox(range(16))
Exception raised:
    Traceback (most recent call last):
      File 
"/Users/palmieri/Desktop/Sage_stuff/sage_builds/PYTHON3/sage-8.9.beta8/local/lib/python3.7/site-packages/sage/doctest/forker.py",
 
line 681, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File 
"/Users/palmieri/Desktop/Sage_stuff/sage_builds/PYTHON3/sage-8.9.beta8/local/lib/python3.7/site-packages/sage/doctest/forker.py",
 
line 1105, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.crypto.block_cipher.present[9]>", line 1, in 
<module>
        cipher.sbox = SBox(range(Integer(16)))
      File 
"/Users/palmieri/Desktop/Sage_stuff/sage_builds/PYTHON3/sage-8.9.beta8/local/lib/python3.7/site-packages/sage/crypto/sbox.py",
 
line 157, in __init__
        raise TypeError("No lookup table provided.")
    TypeError: No lookup table provided.
**********************************************************************
File "src/sage/crypto/block_cipher/present.py", line 44, in 
sage.crypto.block_cipher.present
Failed example:
    cipher.encrypt(plaintext=0x1234, key=0x0).hex()
Expected:
    '1234'
Got:
    'cccccccccccc56b9'
**********************************************************************
1 item had failures:
   2 of  13 in sage.crypto.block_cipher.present
    [138 tests, 2 failures, 3.44 s]
----------------------------------------------------------------------
sage -t --warn-long 61.3 src/sage/crypto/block_cipher/present.py  # 2 
doctests failed


On Sunday, August 25, 2019 at 3:37:50 PM UTC-7, Volker Braun wrote:
>
> As always, you can get the latest beta version from the "develop" git 
> branch. Alternatively, the self-contained source tarball is at 
> http://www.sagemath.org/download-latest.html 
>
> It is nearing the end of the 8.9 merge window, so if you want something 
> merged then this is your last chance.
>
> I'm inclined to name the next version 9.0. In particular, we now have 
> Python 3 support that, while not perfect, is at least usable so we should 
> mark that with a new major version. Also point-9 is a natural place to 
> switch. If you want to voice your opinion on that issue: now is the time ;-)
>
>
> 4583b4056e (tag: 8.9.beta8, trac/develop) Updated SageMath version to 
> 8.9.beta8
> 6565e63ee9 Trac #28373: new big bag of typos
> 0052843038 Trac #28297: Small optimizations to arithmetic in number fields 
> of degree > 2
> a9f414a6f8 Trac #28057: Adding precision in computing the generators of 
> the period lattice of an elliptic curve.
> 40c5efa0c8 Trac #28365: Use something instead of time() to ensure Manifold 
> uniqueness in tests
> bd8504c9e8 Trac #28335: Cythonize Yen_k_shortest_simple_paths and 
> feng_k_shortest_simple_paths
> c1d5763dc3 Trac #28147: Remove _derivative from Polynomial_template
> ef1517da96 Trac #28056: Sboxes Maintenance
> 05bd7671a2 Trac #26098: Implement L-functions using the PARI library
> c050128f4a Trac #20755: Bug in solve due to a bug in 
> symbolic_expression_from_maxima_string
> 2a4bfffc48 Trac #28353: var() with single-element list/tuple crashes with 
> unhandled TypeError
> 0a45dfc784 Trac #28371: py3: errors with optional package CSDP
> 5ab84a6fb3 Trac #28369: Improve progress report in gitlab-ci
> a8599952c3 Trac #28367: MR30: Update README.md: -py3 suffix
> 56f7684a57 Trac #28346: Use dots instead of precision in polynomial_element
> 8edd3f2797 Trac #28201: small cleanup of databases/cremona
> 1b7d07b6cc Trac #27573: PRESENT Block Cipher
> 5f22d242b6 Trac #28321: py3: rationals can not be initialized from a pair 
> of big Python ints
> b972100c84 Trac #24494: Deprecate set_planar_positions()
> 42eb5103aa Trac #28364: MR29: Update faq-usage.rst
> 047992b031 Trac #28361: Implement parameter external_face of 
> layout_planar()
> ae73a81a59 Trac #28343: Three.js: Support basic mesh plots
> 7e623eddb1 Trac #28116: Cython 0.29.12
> 7508513e65 Trac #28108: Py3: ValueError in graph_generators doctests with 
> plantri optional package
> a98c0ab16f Trac #28347: Add as_integer_ratio() for Integer, Rational, 
> RealNumber, RealDoubleElement
> 431187f776 Trac #28344: Fix some issues with submanifolds and improve 
> their documentation
> 7c0d719021 Trac #28342: spkg-configure.m4 for m4ri, m4rie, givaro
> 5d6ac68f68 Trac #28228: Semistandard super tableau and standard super 
> tableau for superRSK
> 7d561d89cf (tag: 8.9.beta7) Updated SageMath version to 8.9.beta7
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-release+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-release/64148986-162b-4697-876b-f55804e295e8%40googlegroups.com.

Reply via email to