docstr: An exception is thrown when a script has a compile error.
docstr_tok: ["An","exception","is","thrown","when","a","script","has","a","compile","error","."]
code: def test_syntax_error(self):
      """An exception is thrown when a script has a compile error."""
      cache = ScriptCache()
      with self.assertRaises(SyntaxError):
          cache.get_bytecode(_get_script_path("compile_error.py.txt"))
  
file_path: streamlit/lib/tests/streamlit/runtime/scriptrunner/script_cache_test.py
imports: import os.path
  import unittest
  from unittest import mock
  from unittest.mock import Mock
  from streamlit import source_util
  from streamlit.runtime.scriptrunner.script_cache import ScriptCache
label_desc: Use image node_id 5 for calling the ScriptCacheTest obj's underlying member method code with example usage: obj.test_syntax_error() without return types