summary refs log tree commit diff
path: root/pkgs/applications/science/math/sage/patches/configurationpy-error-verbose.patch
blob: e687281ad1a7c3523436041b5a7bfbf521190ce3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 ...
 """
 
 #*****************************************************************************