def METHOD_NAME(self) -> None:
    """Test the convert_to_BuildError function on SConsEnvironmentError
    exceptions.
    """
    ee = SCons.Errors.SConsEnvironmentError("test env error")
    be = SCons.Errors.convert_to_BuildError(ee)
    assert be.errstr == "test env error"
    assert be.status == 2
    assert be.exitstatus == 2
    assert be.filename is None