mbarkhau / bumpver

BumpVer: Automatic Versioning
https://github.com/mbarkhau/bumpver
MIT License
199 stars 36 forks source link

FIX: hg backend won't work with PYTHONDEBUG=y #160

Closed JulienPalard closed 3 years ago

JulienPalard commented 3 years ago

This is due to hg currently having a warning:

$ hg pull
/usr/lib/python3.9/importlib/util.py:245: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  self.__spec__.loader.exec_module(self)

and the has_remote function checking:

if output.strip() == "":

It was making my tests fail locally. By moving stderr to subprocess.PIPE, stderr is still on the error object, so it's still possible to debug.