third_party/blink/tools/blinkpy/web_tests/models/test_expectations.py
def remove_expectations(self, path, exps):
        """This method removes Expectation instances from an expectations file.
        It will delete the line in the expectations file associated with the
        Expectation instance.

        args:
            path: Absolute path of file where the Expectation instances
                  came from.
            exps: List of Expectation instances to be deleted."""
        idx = list(self._expectations_dict.keys()).index(path)
        typ_expectations = self._expectations[idx]

        for exp in exps:
            if exp.is_glob:
                pattern_to_exps = typ_expectations.glob_exps
            else:
                pattern_to_exps = typ_expectations.individual_exps
            pattern_to_exps[exp.test].remove(exp)
            if not pattern_to_exps[exp.test]:
                pattern_to_exps.pop(exp.test)
This method removes Expectation instances from an expectations file.
        It will delete the line in the expectations file associated with the
        Expectation instance.

        args:
            path: Absolute path of file where the Expectation instances
                  came from.
            exps: List of Expectation instances to be deleted.
This method removes Expectation instances from an expectations file.
It will delete the line in the expectations file associated with the
Expectation instance.

Absolute path of file where the Expectation instances
came from.
exps: List of Expectation instances to be deleted.
This method removes Expectation instances from an expectations file . It will delete the line in the expectations file associated with the Expectation instance . Absolute path of file where the Expectation instances came from . exps : List of Expectation instances to be deleted .
def remove_expectations(self, path, exps):
        idx = list(self._expectations_dict.keys()).index(path)
        typ_expectations = self._expectations[idx]
        for exp in exps:
            if exp.is_glob:
                pattern_to_exps = typ_expectations.glob_exps
            else:
                pattern_to_exps = typ_expectations.individual_exps
            pattern_to_exps[exp.test].remove(exp)
            if not pattern_to_exps[exp.test]:
                pattern_to_exps.pop(exp.test)
def remove_expectations ( self , path , exps ) : idx = list ( self . _expectations_dict . keys ( ) ) . index ( path ) typ_expectations = self . _expectations [ idx ] for exp in exps : if exp . is_glob : pattern_to_exps = typ_expectations . glob_exps else : pattern_to_exps = typ_expectations . individual_exps pattern_to_exps [ exp . test ] . remove ( exp ) if not pattern_to_exps [ exp . test ] : pattern_to_exps . pop ( exp . test )
This method removes Expectation instances from an expectations file.
This method removes Expectation instances from an expectations file .
"""This method removes Expectation instances from an expectations file.
        It will delete the line in the expectations file associated with the
        Expectation instance.

        args:
            path: Absolute path of file where the Expectation instances
                  came from.
            exps: List of Expectation instances to be deleted."""
self
path
exps