- 21 Jul, 2020 1 commit
-
-
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.
-
- 21 Dec, 2014 2 commits
-
-
Yuya Nishihara authored
If NOSE_WITH_DOCTEST is set by default, doctests would be run twice because we have to run largefiles tests in isolated process.
-
Yuya Nishihara authored
Because largefiles wraps many functions statically, ManifestModelLargeFilesTest must be run in isolated environment. Otherwise, subsequent tests would fail with AttributeError: 'mqrepo' object has no attribute '_lfstatuswriters'. Eventually, 'extensions' attribute can be used to set up .hgrc and 'mq' tests should also be isolated.
-
- 03 Jun, 2012 1 commit
-
-
Yuya Nishihara authored
--HG-- branch : stable
-
- 18 May, 2012 1 commit
-
-
Yuya Nishihara authored
--HG-- branch : stable
-
- 08 May, 2012 3 commits
-
-
Yuya Nishihara authored
Without the custom sys.excepthook, nose cannot catch exception raised asynchronously. --HG-- branch : stable
-
Yuya Nishihara authored
Most environment varialbes are derived from Mercurial's run-tests.py. --HG-- branch : stable
-
Yuya Nishihara authored
It adds a little script to run nosetests with the helper plugin. --HG-- branch : stable
-
- 10 Jun, 2012 1 commit
-
-
Yuya Nishihara authored
-