code: def test_on_conflict_rollback(self):
      con = self.con
      con.execute("create table foo(x, unique(x) on conflict rollback)")
      con.execute("insert into foo(x) values (1)")
      try:
          con.execute("insert into foo(x) values (1)")
      except sqlite.DatabaseError:
          pass
      con.execute("insert into foo(x) values (2)")
      try:
          con.commit()
      except sqlite.OperationalError:
          self.fail("pysqlite knew nothing about the implicit ROLLBACK")
  
imports: import datetime
  import unittest
  import sqlite3
  import weakref
  import functools
  from test import support
  from unittest.mock import patch
  from .util import memory_database, cx_limit
  from .util import MemoryDatabaseMixin
label_desc: Use image node_id 6 for calling the RegressionTests obj's underlying member method code with example usage: obj.test_on_conflict_rollback() without return types