summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vba.py6
1 files changed, 5 insertions, 1 deletions
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()