summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorBenjamin Staffin <benley@gmail.com>2015-09-07 22:04:02 -0700
committerBjørn Forsman <bjorn.forsman@gmail.com>2015-09-09 12:16:21 +0200
commitae9bd823edbf936b652825c251343a6845b9ae38 (patch)
tree2fee5709bc70cfe65f0bb9145113694d498b6d41 /pkgs/development/python-modules
parentee8359868831991f6cf3ca62d950d731c66796db (diff)
downloadnixlib-ae9bd823edbf936b652825c251343a6845b9ae38.tar
nixlib-ae9bd823edbf936b652825c251343a6845b9ae38.tar.gz
nixlib-ae9bd823edbf936b652825c251343a6845b9ae38.tar.bz2
nixlib-ae9bd823edbf936b652825c251343a6845b9ae38.tar.lz
nixlib-ae9bd823edbf936b652825c251343a6845b9ae38.tar.xz
nixlib-ae9bd823edbf936b652825c251343a6845b9ae38.tar.zst
nixlib-ae9bd823edbf936b652825c251343a6845b9ae38.zip
mathics: Fix unit tests
Disabled two tests that require a preinstalled build of Mathics to
work, which is incompatible with the way nix runs them.

[Bjørn: remove unrelated disabling on Python 3]
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/mathics/disable_console_tests.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/mathics/disable_console_tests.patch b/pkgs/development/python-modules/mathics/disable_console_tests.patch
new file mode 100644
index 000000000000..6e20686fc41a
--- /dev/null
+++ b/pkgs/development/python-modules/mathics/disable_console_tests.patch
@@ -0,0 +1,21 @@
+These tests require that Mathics already be installed to work,
+which is not true when nix runs them.
+
+--- a/test/test_console.py	2015-09-07 21:41:08.530501979 -0700
++++ b/test/test_console.py	2015-09-07 21:42:44.082176084 -0700
+@@ -13,6 +13,7 @@
+         os.environ["TERM"] = "dumb"
+         self.console = pexpect.spawn('python2 mathics/main.py --color NOCOLOR')
+ 
++    @unittest.expectedFailure
+     def testLaunch(self):
+         cons = self.console
+ 
+@@ -41,6 +42,7 @@
+             'Quit by pressing CONTROL-D\r\n'
+             '\r\n')
+ 
++    @unittest.expectedFailure
+     def testPrompt(self):
+         cons = self.console
+         cons.expect('Quit by pressing CONTROL-D\r\n\r\n')