diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-03-01 22:31:20 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-03-01 22:31:20 -0600 |
commit | 3255093451d5828dd3e2b3a0132858a296ee4777 (patch) | |
tree | cd58eb68b4805d90bab49ef5829e16249de605fd /extras/vba.py | |
parent | c2932b0490dc9cf7cce8ace6a85eecb49fd8e362 (diff) |
vba - run without unit tests
Diffstat (limited to 'extras/vba.py')
-rw-r--r-- | extras/vba.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/extras/vba.py b/extras/vba.py index 73d90d6e7..3a1a97a2e 100644 --- a/extras/vba.py +++ b/extras/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() |