googletest-param-test-invalid-name2-test.py (googletest-release-1.11.0) | : | googletest-param-test-invalid-name2-test.py (googletest-release-1.12.0) | ||
---|---|---|---|---|
skipping to change at line 33 | skipping to change at line 33 | |||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
"""Verifies that Google Test warns the user when not initialized properly.""" | """Verifies that Google Test warns the user when not initialized properly.""" | |||
import gtest_test_utils | from googletest.test import gtest_test_utils | |||
binary_name = 'googletest-param-test-invalid-name2-test_' | binary_name = 'googletest-param-test-invalid-name2-test_' | |||
COMMAND = gtest_test_utils.GetTestExecutablePath(binary_name) | COMMAND = gtest_test_utils.GetTestExecutablePath(binary_name) | |||
def Assert(condition): | def Assert(condition): | |||
if not condition: | if not condition: | |||
raise AssertionError | raise AssertionError | |||
def TestExitCodeAndOutput(command): | def TestExitCodeAndOutput(command): | |||
"""Runs the given command and verifies its exit code and output.""" | """Runs the given command and verifies its exit code and output.""" | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |