def test_iter_while_modifying_values(self):
        if not hasattr(self.f, '__iter__'):
            return

        di = iter(self.d)
        while 1:
            try:
                key = di.next()
                self.d[key] = 'modified '+key
            except StopIteration:
                break

        # it should behave the same as a dict.  modifying values
        # of existing keys should not break iteration.  (adding
        # or removing keys should)
        fi = iter(self.f)
        while 1:
            try:
                key = fi.next()
                self.f[key] = 'modified '%key
            except StopIteration:
                break

        self.test_mapping_iteration_methods()
dataset/ETHPy150Open babble/babble/include/jython/Lib/test/test_bsddb.py/TestBSDDB.test_iter_while_modifying_values/operator `+` -> `%`