summary refs log tree commit diff
path: root/pkgs/applications/science/math/sage/patches/configurationpy-error-verbose.patch
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2019-08-17 09:30:16 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2019-08-17 09:30:16 +0200
commitc68f58d95c0e34d91ff3e4f08464954fd0e9e466 (patch)
tree11455dc939663bdda36790451315de1cc364614b /pkgs/applications/science/math/sage/patches/configurationpy-error-verbose.patch
parent8d56f2472e47a3f1f388b69c0ecc24421910d555 (diff)
parenta2bd8da766c7a7ea456afd099b86920dd902cec4 (diff)
downloadnixpkgs-c68f58d95c0e34d91ff3e4f08464954fd0e9e466.tar
nixpkgs-c68f58d95c0e34d91ff3e4f08464954fd0e9e466.tar.gz
nixpkgs-c68f58d95c0e34d91ff3e4f08464954fd0e9e466.tar.bz2
nixpkgs-c68f58d95c0e34d91ff3e4f08464954fd0e9e466.tar.lz
nixpkgs-c68f58d95c0e34d91ff3e4f08464954fd0e9e466.tar.xz
nixpkgs-c68f58d95c0e34d91ff3e4f08464954fd0e9e466.tar.zst
nixpkgs-c68f58d95c0e34d91ff3e4f08464954fd0e9e466.zip
Merge master into staging-next
Diffstat (limited to 'pkgs/applications/science/math/sage/patches/configurationpy-error-verbose.patch')
-rw-r--r--pkgs/applications/science/math/sage/patches/configurationpy-error-verbose.patch19
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 ...
+ """
+ 
+ #*****************************************************************************