diff options
author | Timo Kaufmann <timokau@zoho.com> | 2019-08-17 00:33:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-17 00:33:05 +0200 |
commit | 192197dc6cd7b04984c07a4d99ed84b161776e39 (patch) | |
tree | 17accb9e91d352e04a1bf0d4b080f0ddb4aff0d6 /pkgs/applications/science/math/sage/patches | |
parent | 63ce6bf9f380377bd41ccc897ab9889923c9f8e8 (diff) | |
parent | 41bb3194622637aa26fe5a28880165d9ecb2f2df (diff) | |
download | nixpkgs-192197dc6cd7b04984c07a4d99ed84b161776e39.tar nixpkgs-192197dc6cd7b04984c07a4d99ed84b161776e39.tar.gz nixpkgs-192197dc6cd7b04984c07a4d99ed84b161776e39.tar.bz2 nixpkgs-192197dc6cd7b04984c07a4d99ed84b161776e39.tar.lz nixpkgs-192197dc6cd7b04984c07a4d99ed84b161776e39.tar.xz nixpkgs-192197dc6cd7b04984c07a4d99ed84b161776e39.tar.zst nixpkgs-192197dc6cd7b04984c07a4d99ed84b161776e39.zip |
Merge pull request #65802 from timokau/sage-transient-debug
sage: add patch to debug transient issue
Diffstat (limited to 'pkgs/applications/science/math/sage/patches')
-rw-r--r-- | pkgs/applications/science/math/sage/patches/configurationpy-error-verbose.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/sage/patches/configurationpy-error-verbose.patch b/pkgs/applications/science/math/sage/patches/configurationpy-error-verbose.patch new file mode 100644 index 00000000000..e687281ad1a --- /dev/null +++ b/pkgs/applications/science/math/sage/patches/configurationpy-error-verbose.patch @@ -0,0 +1,19 @@ +diff --git a/src/sage/repl/configuration.py b/src/sage/repl/configuration.py +index 67d7d2accf..18279581e2 100644 +--- a/src/sage/repl/configuration.py ++++ b/src/sage/repl/configuration.py +@@ -9,10 +9,11 @@ the IPython simple prompt is being used:: + sage: cmd = 'print([sys.stdin.isatty(), sys.stdout.isatty()])' + sage: import pexpect + sage: output = pexpect.run( +- ....: 'bash -c \'echo "{0}" | sage\''.format(cmd), ++ ....: 'bash -c \'export SAGE_BANNER=no; echo "{0}" | sage\''.format(cmd), + ....: ).decode('utf-8', 'surrogateescape') +- sage: 'sage: [False, True]' in output +- True ++ sage: print(output) ++ sage...[False, True] ++ sage...Exiting Sage ... + """ + + #***************************************************************************** |