From 641f3dafbf5529f941d988a5ac746b578108ed4b Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Fri, 1 Mar 2013 22:31:20 -0600 Subject: vba - run without unit tests original-commit-id: 3255093451d5828dd3e2b3a0132858a296ee4777 --- vba.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vba.py') diff --git a/vba.py b/vba.py index 73d90d6..3a1a97a 100644 --- a/vba.py +++ b/vba.py @@ -815,7 +815,11 @@ class crystal: set_memory(memory) class TestEmulator(unittest.TestCase): - state = load_state("cheating-12") + try: + state = load_state("cheating-12") + except: + if "__name__" == "__main__": + raise Exception("failed to setup unit tests because no save state found") def setUp(self): load_rom() -- cgit v1.2.3