comparison tests/run-tests.py @ 41495:ef29b6b8768c

py3: byteify the --retest path of run-tests.py
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 31 Jan 2019 21:54:38 -0500
parents f9150901267c
children 17a6e063c886
comparison
equal deleted inserted replaced
41494:fa7d4e6a0c98 41495:ef29b6b8768c
2770 If you wish to inject custom tests into the test harness, this would 2770 If you wish to inject custom tests into the test harness, this would
2771 be a good function to monkeypatch or override in a derived class. 2771 be a good function to monkeypatch or override in a derived class.
2772 """ 2772 """
2773 if not args: 2773 if not args:
2774 if self.options.changed: 2774 if self.options.changed:
2775 proc = Popen4('hg st --rev "%s" -man0 .' % 2775 proc = Popen4(b'hg st --rev "%s" -man0 .' %
2776 self.options.changed, None, 0) 2776 _bytespath(self.options.changed), None, 0)
2777 stdout, stderr = proc.communicate() 2777 stdout, stderr = proc.communicate()
2778 args = stdout.strip(b'\0').split(b'\0') 2778 args = stdout.strip(b'\0').split(b'\0')
2779 else: 2779 else:
2780 args = os.listdir(b'.') 2780 args = os.listdir(b'.')
2781 2781