summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-07-05 12:14:40 -0400
committerGitHub <noreply@github.com>2017-07-05 12:14:40 -0400
commit77dcf8c70e7182d23c44a6f5fcbbd75bf4efdd67 (patch)
treef6b29723b146d3f58e90e0f983419a04bf460262
parent4586d87d24ce3ed33d0e63743c5cbea41e7c5bc0 (diff)
parent9839eb530a8909365ae4d64a074eaa14cb12c1fd (diff)
downloadcmd2-git-77dcf8c70e7182d23c44a6f5fcbbd75bf4efdd67.tar.gz
Merge pull request #173 from python-cmd2/expansion_test
Fix a bug in a unit test which can happen in atypical circumstances
-rw-r--r--CHANGES.md3
-rw-r--r--tests/test_completion.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/CHANGES.md b/CHANGES.md
index 61b9baac..3efb0949 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -4,13 +4,14 @@ News
0.7.5
-----
-*Release date: TBD*
+*Release date: 2017-TBD*
* Bug Fixes
* `case_insensitive` is no longer a runtime-settable parameter, but it was still listed as such
* Fixed a recursive loop bug when abbreviated commands are enabled and it could get stuck in the editor forever
* Added additional command abbreviations to the "exclude from history" list
* Fixed argparse_example.py and pirate.py examples and transcript_regex.txt transcript
+ * Fixed a bug in a unit test which occurred under unusual circumstances
* Enhancements
* Organized all attributes used to configure the ParserManager into a single location
* Set the default value of `abbrev` to `False` (which controls whether or not abbreviated commands are allowed)
diff --git a/tests/test_completion.py b/tests/test_completion.py
index 36172616..180a65d8 100644
--- a/tests/test_completion.py
+++ b/tests/test_completion.py
@@ -238,7 +238,7 @@ def test_path_completion_user_expansion(cmd2_app):
if sys.platform.startswith('win'):
line = '!dir ~\{}'.format(text)
else:
- line = '!ls ~{}'.format(text)
+ line = '!ls ~/{}'.format(text)
endidx = len(line)
begidx = endidx - len(text)
completions_tilde = cmd2_app.path_complete(text, line, begidx, endidx)