Skip to content

Commit 77dcf8c

Browse files
authored
Merge pull request #173 from python-cmd2/expansion_test
Fix a bug in a unit test which can happen in atypical circumstances
2 parents 4586d87 + 9839eb5 commit 77dcf8c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ News
44
0.7.5
55
-----
66

7-
*Release date: TBD*
7+
*Release date: 2017-TBD*
88

99
* Bug Fixes
1010
* `case_insensitive` is no longer a runtime-settable parameter, but it was still listed as such
1111
* Fixed a recursive loop bug when abbreviated commands are enabled and it could get stuck in the editor forever
1212
* Added additional command abbreviations to the "exclude from history" list
1313
* Fixed argparse_example.py and pirate.py examples and transcript_regex.txt transcript
14+
* Fixed a bug in a unit test which occurred under unusual circumstances
1415
* Enhancements
1516
* Organized all attributes used to configure the ParserManager into a single location
1617
* Set the default value of `abbrev` to `False` (which controls whether or not abbreviated commands are allowed)

tests/test_completion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def test_path_completion_user_expansion(cmd2_app):
238238
if sys.platform.startswith('win'):
239239
line = '!dir ~\{}'.format(text)
240240
else:
241-
line = '!ls ~{}'.format(text)
241+
line = '!ls ~/{}'.format(text)
242242
endidx = len(line)
243243
begidx = endidx - len(text)
244244
completions_tilde = cmd2_app.path_complete(text, line, begidx, endidx)

0 commit comments

Comments
 (0)