mirror of
https://github.com/mnaberez/py65.git
synced 2025-03-04 18:33:49 +00:00
Fix help_cd() to not raise an exception
This commit is contained in:
parent
60454197fe
commit
f3034082c9
@ -1,5 +1,8 @@
|
||||
0.12-dev *Next Release*
|
||||
|
||||
- Fixed a bug that caused ``help cd`` to raise an exception
|
||||
in the monitor.
|
||||
|
||||
0.11 (2012-01-07)
|
||||
|
||||
- Added a new 65Org16 MPU simulation written by Ed Spittles.
|
||||
|
@ -452,7 +452,7 @@ class Monitor(cmd.Cmd):
|
||||
except KeyError, why:
|
||||
self._output(why[0])
|
||||
|
||||
def help_cd(self, args):
|
||||
def help_cd(self):
|
||||
self._output("cd <directory>")
|
||||
self._output("Change the working directory.")
|
||||
|
||||
|
@ -139,6 +139,16 @@ class MonitorTests(unittest.TestCase):
|
||||
out = stdout.getvalue()
|
||||
self.assertTrue(out.startswith("assemble <address>"))
|
||||
|
||||
# cd
|
||||
|
||||
def test_help_cd(self):
|
||||
stdout = StringIO()
|
||||
mon = Monitor(stdout=stdout)
|
||||
mon.help_cd()
|
||||
|
||||
out = stdout.getvalue()
|
||||
self.assertTrue(out.startswith("cd <directory>"))
|
||||
|
||||
# delete_label
|
||||
|
||||
def test_shortcut_for_delete_label(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user