summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-02-07 10:31:07 -0800
committerDylan Baker <dylan@pnwbakers.com>2017-02-07 10:45:55 -0800
commit6fe90ec16662c6760453fc9857ba4e06bb1045bd (patch)
treee7a6960082ae67cf98bcbebfac1ac7682c9dc6ef /tests
parent4e24022be56f5cc072f2f536959ada9e8b0ecda7 (diff)
alot/helper: simplify call_cmd and fix test
This both fixes a test that failed (since stderr wasn't being set) and simplifies the function to only have one path that uses a ternary.
Diffstat (limited to 'tests')
-rw-r--r--tests/helper_test.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/helper_test.py b/tests/helper_test.py
index a2a2b925..78cba84d 100644
--- a/tests/helper_test.py
+++ b/tests/helper_test.py
@@ -362,8 +362,6 @@ class TestCallCmd(unittest.TestCase):
# know for certain it should *not* return 0
self.assertNotEqual(code, 0)
- # This fails because stderr is not recorded correctly
- @unittest.expectedFailure
def test_bad_argument(self):
out, err, code = helper.call_cmd(['cat', '-Y'])
self.assertEqual(out, u'')