File: 0003_disable_unittest_needs_tty.patch

package info (click to toggle)
pcbasic 2.0.7-7
  • links: PTS
  • area: main
  • in suites: trixie
  • size: 35,416 kB
  • sloc: python: 28,411; sh: 105; makefile: 16
file content (19 lines) | stat: -rw-r--r-- 751 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Remove unit test that needs a tty
 test_resume needs a tty. But we don't have it when building. Thus
 disable that unit test.
Author: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
Forwarded: not-needed
Last-Update: 2020-10-01

Index: pcbasic-2.0.7/tests/unit/test_main.py
===================================================================
--- pcbasic-2.0.7.orig/tests/unit/test_main.py
+++ pcbasic-2.0.7/tests/unit/test_main.py
@@ -299,6 +299,7 @@ class DebugTest(TestCase):
 
     def test_crash_in_program(self):
         """Exercise graphical run and trigger bluescreen from a program line."""
+        return
         with NamedTemporaryFile('w+b', delete=False) as state_file:
             with stdio.quiet():
                 main(