Patchwork [3,of,6,chg-test] run-tests: drop redundant assignment to BINDIR

login
register
mail settings
Submitter Yuya Nishihara
Date Feb. 12, 2016, 4:12 p.m.
Message ID <97088e3b2707d37887b9.1455293556@mimosa>
Download mbox | patch
Permalink /patch/13140/
State Accepted
Headers show

Comments

Yuya Nishihara - Feb. 12, 2016, 4:12 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1454828561 -32400
#      Sun Feb 07 16:02:41 2016 +0900
# Node ID 97088e3b2707d37887b9203e78075107aec2b45c
# Parent  c875a2298a7e1af285f8acb60fdb66deb1732bc3
run-tests: drop redundant assignment to BINDIR

We do it a few lines after.

Patch

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -1939,8 +1939,7 @@  class TestRunner(object):
             self._pythondir = self._bindir
         else:
             self._installdir = os.path.join(self._hgtmp, b"install")
-            self._bindir = osenvironb[b"BINDIR"] = \
-                os.path.join(self._installdir, b"bin")
+            self._bindir = os.path.join(self._installdir, b"bin")
             self._tmpbindir = self._bindir
             self._pythondir = os.path.join(self._installdir, b"lib", b"python")