diff options
| author | Damian Johnson <atagar@torproject.org> | 2016-11-03 19:33:38 -0700 |
|---|---|---|
| committer | Damian Johnson <atagar@torproject.org> | 2016-11-03 19:39:27 -0700 |
| commit | 139e598af7529b270eaf279ed4d89d47bfdcba56 (patch) | |
| tree | c163765c18e854be6d2d476caab73efcd82f688d | |
| parent | f7be7a8236217fcc57e1a7829ca2affa12d7df8d (diff) | |
Duplicate key in test_cwd_lsof()
Oops, good catch on...
https://trac.torproject.org/projects/tor/ticket/20477#comment:5
| -rw-r--r-- | test/unit/util/system.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/util/system.py b/test/unit/util/system.py index 509b9cb3..e519aec8 100644 --- a/test/unit/util/system.py +++ b/test/unit/util/system.py @@ -362,7 +362,7 @@ class TestSystem(unittest.TestCase): responses = { '75717': ['p75717', 'n/Users/atagar/tor/src/or'], - '75717': ['p75717', 'fcwd', 'n/Users/atagar/tor/src/or'], + '75718': ['p75718', 'fcwd', 'n/Users/atagar/tor/src/or'], '1234': ['malformed output'], '7878': [], } @@ -370,7 +370,7 @@ class TestSystem(unittest.TestCase): call_mock.side_effect = mock_call(system.GET_CWD_LSOF, responses) for test_input in responses: - expected_response = '/Users/atagar/tor/src/or' if test_input == '75717' else None + expected_response = '/Users/atagar/tor/src/or' if test_input in ('75717', '75718') else None self.assertEqual(expected_response, system.cwd(test_input)) def test_tail(self): |
