(self)
| 1474 | assert_equal(r2, _foo2(1, 2, 3)) |
| 1475 | |
| 1476 | def test_keywords_no_func_code(self): |
| 1477 | # This needs to test a function that has keywords but |
| 1478 | # no func_code attribute, since otherwise vectorize will |
| 1479 | # inspect the func_code. |
| 1480 | import random |
| 1481 | try: |
| 1482 | vectorize(random.randrange) # Should succeed |
| 1483 | except Exception: |
| 1484 | raise AssertionError() |
| 1485 | |
| 1486 | def test_keywords2_ticket_2100(self): |
| 1487 | # Test kwarg support: enhancement ticket 2100 |