File: no_xmlrunner

package info (click to toggle)
python-irodsclient 0.8.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 620 kB
  • sloc: python: 6,523; xml: 525; sh: 7; makefile: 3
file content (24 lines) | stat: -rw-r--r-- 847 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Author: Michael R. Crusoe <michael.crusoe@gmail.com>
Description: xmlrunner is not packaged for Debian, so just run plainly
--- python-irodsclient.orig/irods/test/runner.py
+++ python-irodsclient/irods/test/runner.py
@@ -9,8 +9,7 @@
 from __future__ import absolute_import
 import os
 import sys
-from unittest import TestLoader, TestSuite
-import xmlrunner
+from unittest import TestLoader, TestSuite, TextTestRunner
 import logging
 
 logger = logging.getLogger()
@@ -30,8 +29,7 @@
     suite = TestSuite(loader.discover(start_dir='.', pattern='*_test.py',
                                       top_level_dir="."))
 
-    result = xmlrunner.XMLTestRunner(
-        verbosity=2, output='/tmp/python-irodsclient/test-reports').run(suite)
+    result = TextTestRunner(verbosity=2).run(suite)
     if result.wasSuccessful():
         sys.exit(0)