- 21 Jul, 2020 2 commits
-
-
Manuel Jacob authored
Nosetests is not actively developed anymore. Pytest is actively developed and has a much larger ecosystem around it. Two features of pytest are particularly helpful for us: Pytest captures stdio by redirecting at the file descriptor-level instead of replacing sys.stdout. This is required for Mercurial, as it has its own reference to stdout. Before with nosetests, most output was silently swallowed. Pytest offers the `ALLOW_UNICODE` and `ALLOW_BYTES` options for doctests, making it much easier to make our docstrings Python 2- and Python 3-compatiable. During this patch, it was attempted to leave the structure of the test code similar to before instead of converting everything to idiomatic pytest code. Luckily, pytest implements enough interoperability for most of our test code.
-
Manuel Jacob authored
Nosetests treats both the same way. Pytest only understands `setup_module()`. In addition, one `teardown()` was renamed to `teardown_module()`.
-
- 20 May, 2019 1 commit
-
-
Yuya Nishihara authored
obsolete._enabled no longer works.
-
- 31 Dec, 2016 1 commit
-
-
Yuya Nishihara authored
The following ui.ui() calls are not changed, which are obvious we don't want to load user settings: - version.liveversion() - doctests - error dialog called by thg and hgext3rd/thg.py I'm a little surprised that we still have lots of adhoc ui/repo instantiations.
-
- 15 Jul, 2014 1 commit
-
-
Yuya Nishihara authored
Since 1011f54f8f30, clfilter is enabled by default. repo[0] works even if it is empty, but if rev 0 is hidden by clfilter, it raises RepoLookupError.
-