forked from datadriventests/ddt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make index_len argument to idata optional
PR datadriventests#92 added an extra argument to the `idata` decorator. This had no default value, and so the calling convention was incompatible with older releases of `ddt`. This makes the second argument optional, with the previous default value inferred if it is not supplied. This means that the single-argument form of `idata` will still work, while supporting the newer method allowing it to be overridden.
- Loading branch information
1 parent
b0683d2
commit 5ebc47e
Showing
3 changed files
with
113 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters