ref: 3255093451d5828dd3e2b3a0132858a296ee4777
parent: c2932b0490dc9cf7cce8ace6a85eecb49fd8e362
author: Bryan Bishop <[email protected]>
date: Fri Mar 1 17:31:20 EST 2013
vba - run without unit tests
--- a/extras/vba.py
+++ b/extras/vba.py
@@ -815,7 +815,11 @@
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()