code: def test_error_two_cursors(self):
      cur = self.conn.cursor()
      cur2 = self.conn.cursor()
      cur.execute("select * from no_such_table")
      self.assertRaises(psycopg2.ProgrammingError, self.wait, cur)
      cur2.execute("select 1")
      self.wait(cur2)
      self.assertEquals(cur2.fetchone()[0], 1)
  
imports: import gc
  import time
  import unittest
  import warnings
  import psycopg2
  import psycopg2.errors
  from psycopg2 import extensions
  from .testutils import ConnectingTestCase, StringIO, skip_before_postgres, skip_if_crdb, crdb_version, slow
label_desc: Use image node_id 26 for calling the AsyncTests obj's underlying member method code with example usage: obj.test_error_two_cursors() without return types