1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Description: Don't hardcode the path to the installed binary
This allows us to run the same test suite against an installed version of the
library.
Author: Stefano Rivera <stefanor@debian.org>
Forwarded: https://github.com/Alir3z4/html2text/pull/37
Last-Update: 2014-10-18
--- a/test/test_html2text.py
+++ b/test/test_html2text.py
@@ -39,8 +39,7 @@
def test_command(fn, *args):
args = list(args)
- cmd_name = os.path.join(os.path.dirname(fn), '..', 'html2text/__init__.py')
- cmd = [sys.executable, cmd_name]
+ cmd = [sys.executable, '-m', 'html2text.__init__']
if '--googledoc' in args:
args.remove('--googledoc')
|