- 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.
-
- 05 Mar, 2020 1 commit
-
-
Yuya Nishihara authored
I'm pretty sure next time I wouldn't remember how to build the tarball. --HG-- branch : stable
-
- 25 Jun, 2020 1 commit
-
-
Yuya Nishihara authored
As always, I can't remember the steps. --HG-- branch : stable
-
- 07 Dec, 2019 3 commits
-
-
Yuya Nishihara authored
-
Matt Harbison authored
This fixes the following pytype error by using a field added in py2.6: File "tortoisehg/util/thread2.py", line 38, in _get_my_tid: No attribute '_active' on module 'threading' [module-attr]
-
Matt Harbison authored
This fixes the following pytype warning: File "hgqt/graph.py", line 622, in _iter_graphnodes: Function GraphEdge.__init__ expects 1 arg(s), got 5 [wrong-arg-count] Expected: (self) Actually passed: (self, _, _, _, _)
-
- 01 Dec, 2019 4 commits
-
-
Yuya Nishihara authored
-
Yuya Nishihara authored
Suppresses the following error: line 489, in setContext: No attribute 'setRawContext' on None [attribute-error] In Optional[PyQt5.QtCore.QAbstractItemModel]
-
Yuya Nishihara authored
Also, adds type annotation to help pytype. This fixes the following false positives: line 793, in update_diff: Built-in function len was called with the wrong arguments [wrong-arg-types] Expected: (obj: Sized) Actually passed: (obj: None) The following methods aren't implemented on None: __len__ line 796, in update_diff: Function SequenceMatcher.__init__ was called with the wrong arguments [wrong-arg-types] Expected: (self, isjunk, a: Sequence = ..., ...) Actually passed: (self, isjunk, a: None, ...) The following methods aren't implemented on None: __getitem__, __len__ line 802, in update_diff: Function str.join was called with the wrong arguments [wrong-arg-types] Expected: (self, iterable: Iterable) Actually passed: (self, iterable: None) The following methods aren't implemented on None: __iter__
-
Yuya Nishihara authored
-
- 30 Nov, 2019 5 commits
-
-
Yuya Nishihara authored
-
Yuya Nishihara authored
Also adds some type annotation. This suppresses the following false positives: line 343, in _parentWidget: No attribute 'isWidgetType' on _weakref.ReferenceType[nothing] [attribute-error] In Optional[Union[Any, _weakref.ReferenceType[nothing]]] line 344, in _parentWidget: No attribute 'parent' on _weakref.ReferenceType[nothing] [attribute-error] In Optional[Union[Any, _weakref.ReferenceType[nothing]]]
-
Yuya Nishihara authored
in geticon: Key 'thg-error' possibly not in dictionary (yet) [key-error] Called from (traceback): line 1111, in set_icon
-
Yuya Nishihara authored
-
Yuya Nishihara authored
Suppresses the following errors: in get_revision_desc: No attribute 'decode' on None [attribute-error] In Optional[Any]
-
- 23 Nov, 2019 1 commit
-
-
Yuya Nishihara authored
Right now, we need to copy/symlink .pyi files to pytype/typeshed/third_party/3 so pytype can look for them.
-
- 18 Jun, 2020 1 commit
-
-
Mathias De Mare authored
--HG-- branch : stable
-
- 18 Aug, 2017 1 commit
-
-
Mathias De Mare authored
--HG-- branch : stable
-
- 12 Mar, 2016 1 commit
-
-
Yuya Nishihara authored
It was hard to tell whether HGPATH wasn't recognized or pointed to wrong directory.
-
- 29 Feb, 2016 1 commit
-
-
Matt Harbison authored
This will provide a wider range of supported platforms for the bundle built from Steve's build machine, without having to remember to specify it on the command line once a month. All it will do is adjust the AvailabilityMacros [1] so that newer framework functions aren't linked against. It will run fine on newer systems. Obviously, the other binaries (PyQt, etc) will need to be compiled with support back to 10.7 for this to work (and they are not when using brew), so building on any random machine isn't a guarantee of support. Python only supports 10.6+, but when I tried putting Mercurial's *.so files that were built with 10.6 support into a bundle Steve made, it crashed in a PyQt library on 10.6. The same bundle worked on 10.7 and later, so let's start with that. [1] http://www.opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/AvailabilityMacros.h --HG-- branch : stable
-
- 23 Dec, 2015 2 commits
-
-
Yuya Nishihara authored
It runs "make local" in mercurial source tree so that our setup.py can load mercurial package from there.
-
Yuya Nishihara authored
Make is much easier than running setup.py directly on Unix. I can't remember distutils commands.
-