--substring-error is now the default behaviour. Update HISTORY.
Chris Pressey
5 years ago
0 | 0 |
History
|
1 | 1 |
=======
|
|
2 |
|
|
3 |
Version 0.13 "Merchandise Mart":
|
|
4 |
|
|
5 |
* `--substring-error` is now the default behaviour, and if this
|
|
6 |
option is given, it will be ignored. After a long time
|
|
7 |
considering the problem, we finally determined that it does
|
|
8 |
not make sense to insist that different implementations
|
|
9 |
produce the exact same error message.
|
|
10 |
* `--verbose` option now prints out commands for each test as it
|
|
11 |
is run.
|
|
12 |
* Planned to be the last 0.x series release before 1.0.
|
2 | 13 |
|
3 | 14 |
Version 0.12 "Schoenhofen Brewery":
|
4 | 15 |
|
19 | 19 |
parser = OptionParser()
|
20 | 20 |
parser.add_option("-b", "--substring-error",
|
21 | 21 |
action="store_true", default=False,
|
22 | |
help="match expected errors as substrings")
|
|
22 |
help="no effect (provided for backwards compatibility)")
|
23 | 23 |
parser.add_option("--cavalier",
|
24 | 24 |
action="store_true", default=False,
|
25 | 25 |
help="don't perform sanity linting before running tests")
|
|
31 | 31 |
help="print out info about each test as it is run")
|
32 | 32 |
|
33 | 33 |
(options, args) = parser.parse_args(args[1:])
|
|
34 |
|
|
35 |
if not options.substring_error:
|
|
36 |
if options.verbose:
|
|
37 |
print("NOTE: --substring-error is now default, option has no effect")
|
|
38 |
options.substring_error = True
|
34 | 39 |
|
35 | 40 |
# load Documents and create Falderal Tests from them
|
36 | 41 |
documents = []
|