Commit 4485ab9c authored by Daniel Stender's avatar Daniel Stender

added fix-tests.patch

parents b0782db2 8a6a275c
# see git-dpm(1) from git-dpm package
2942075e807dfb9430f3740e43fc44df1f18302d
2942075e807dfb9430f3740e43fc44df1f18302d
8a6a275c5a0a23fb466d6fa53da968e9096a8676
8a6a275c5a0a23fb466d6fa53da968e9096a8676
2942075e807dfb9430f3740e43fc44df1f18302d
2942075e807dfb9430f3740e43fc44df1f18302d
sphinx-argparse_0.1.15.orig.tar.xz
......
From 8a6a275c5a0a23fb466d6fa53da968e9096a8676 Mon Sep 17 00:00:00 2001
From: Daniel Stender <debian@danielstender.com>
Date: Wed, 20 Jan 2016 21:24:54 +0100
Subject: fix-tests
fix tests for running py.test via Python interpreter
Forwarded: not-needed
---
test/test_parser.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/test/test_parser.py b/test/test_parser.py
index 859e3de..43852a2 100755
--- a/test/test_parser.py
+++ b/test/test_parser.py
@@ -160,8 +160,8 @@ def test_parse_nested():
{
'name': 'install',
'help': 'install help',
- 'usage': 'usage: py.test install [-h] [--upgrade] ref',
- 'bare_usage': 'py.test install [-h] [--upgrade] ref',
+ 'usage': 'usage: pytest.py install [-h] [--upgrade] ref',
+ 'bare_usage': 'pytest.py install [-h] [--upgrade] ref',
'args': [
{
'name': 'ref',
@@ -216,8 +216,8 @@ def test_parse_nested_traversal():
{
'name': 'level3',
'help': '',
- 'usage': 'usage: py.test level1 level2 level3 [-h] foo bar',
- 'bare_usage': 'py.test level1 level2 level3 [-h] foo bar',
+ 'usage': 'usage: pytest.py level1 level2 level3 [-h] foo bar',
+ 'bare_usage': 'pytest.py level1 level2 level3 [-h] foo bar',
'args': [
{
'name': 'foo',
@@ -233,4 +233,4 @@ def test_parse_nested_traversal():
}
]
- assert data == parser_navigate(data, '')
\ No newline at end of file
+ assert data == parser_navigate(data, '')
0001-fix-tests.patch
......@@ -160,8 +160,8 @@ def test_parse_nested():
{
'name': 'install',
'help': 'install help',
'usage': 'usage: py.test install [-h] [--upgrade] ref',
'bare_usage': 'py.test install [-h] [--upgrade] ref',
'usage': 'usage: pytest.py install [-h] [--upgrade] ref',
'bare_usage': 'pytest.py install [-h] [--upgrade] ref',
'args': [
{
'name': 'ref',
......@@ -216,8 +216,8 @@ def test_parse_nested_traversal():
{
'name': 'level3',
'help': '',
'usage': 'usage: py.test level1 level2 level3 [-h] foo bar',
'bare_usage': 'py.test level1 level2 level3 [-h] foo bar',
'usage': 'usage: pytest.py level1 level2 level3 [-h] foo bar',
'bare_usage': 'pytest.py level1 level2 level3 [-h] foo bar',
'args': [
{
'name': 'foo',
......@@ -233,4 +233,4 @@ def test_parse_nested_traversal():
}
]
assert data == parser_navigate(data, '')
\ No newline at end of file
assert data == parser_navigate(data, '')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment