Ejemplo n.º 1
0
def patch_testcase_assert_raises_regexp():
    # pythons before 2.7 does not have TestCase.assertRaisesRegexp() method
    # add our local implementation if needed
    import sys
    if sys.version_info[:2] < (2, 7):
        from buildbot.monkeypatches import testcase_assert
        testcase_assert.patch()
Ejemplo n.º 2
0
def patch_testcase_assert_raises_regexp():
    # pythons before 2.7 does not have TestCase.assertRaisesRegexp() method
    # add our local implementation if needed
    import sys
    if sys.version_info[:2] < (2,7):
        from buildbot.monkeypatches import testcase_assert
        testcase_assert.patch()