Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: How to parameterize unittests Date: Fri, 15 Apr 2016 18:28:21 +1000 Lines: 10 Message-ID: References: <570FA466.20003@rece.vub.ac.be> <570fb1a3$0$1609$c3e8da3$5496439d@news.astraweb.com> <57108FAC.3020105@rece.vub.ac.be> <5710A442.8000906@rece.vub.ac.be> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de F46zenrCIob53bViK+qj9gFSUw+NsPDwSYNQHlo3MRxw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'rewrite': 0.07; 'tests,': 0.07; 'cc:addr:python-list': 0.09; 'subject:How': 0.09; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'instantiate': 0.16; 'paste.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'tests.': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'written': 0.24; 'header:In-Reply-To:1': 0.24; 'fri,': 0.27; 'message- id:@mail.gmail.com': 0.27; '15,': 0.30; 'case,': 0.34; 'received:google.com': 0.35; 'but': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'cut': 0.67; 'directly.': 0.76; 'chrisa': 0.84; 'pardon': 0.84; 'to:none': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc; bh=WfJS2VWzvS7xXtYoZRSYImDCF++dWIN41EncZAyWzA4=; b=YYPzjxp+VMsMv2hdZJiTl+SfqCLtHVSSmaFrbMjQfyj3JFwi6ilnR/cCv59OeX7AeS NqzoYTInbTa3S5YOYhoH+xF0YoYSxyqrRlh6qAeMWjzThVPvvwHKXygvojt5az2C7C/H 48d23/UYrSK5HXCYazaZVsv5UZNbSH5GNua6Q2jRaJGhKggithpdbZqgl00FgJa9sqOg /gmQWsRol4Oy+eQLALovdIbkjCVRfK2D6e1CBuskwgIroB6Bv/4Vk5QIFxZvRoC+B4+p bj3wGjOJ8RMZw0hHEokjg+2dfV3dVZMvqWkVOgSq3JtHLCOJ8ULblHvvcV5BoaKso6rv +98g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=WfJS2VWzvS7xXtYoZRSYImDCF++dWIN41EncZAyWzA4=; b=CYIK6qTIwGXGNw7+fiOw94iKdXJB98zpcp8mYWe8q3KgqCrk3+/qrakceHg0pCH5Vp OuLfqkWJL/xL6G6fmQFaQ5SMvtCoTmEdndQXvBWz8N4z6mcG6vLOYuoosG3p0jcIt3nG IrdyIlSyUUxziXNAq1XOVe0c2QJMSbgMBwVn76GpJbLG1oLbWv9DNj2zX6pg25IOconh T8fI6WxwxLFQSor/SsWAV3sioQF8QTMN1XfwDP+2jdijx8FonqWlfyqcyXiyJoVQHP9x 8jliFWI6UnPNPH1QhzGfo5c0ZMLX47P3mf219Ml9NMiNI9Rve1jyx/O4RZsU8rGSkO+s 0zbw== X-Gm-Message-State: AOPr4FV9AksVbpBixqyRYgFuM1E6HnjPAMzw4YrA2Ehi2BxhRBfx4JPUKHX/zdDWhen8PLHXUz6lSBhBfshsQQ== X-Received: by 10.50.217.130 with SMTP id oy2mr3452476igc.94.1460708901216; Fri, 15 Apr 2016 01:28:21 -0700 (PDT) In-Reply-To: <5710A442.8000906@rece.vub.ac.be> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <570FA466.20003@rece.vub.ac.be> <570fb1a3$0$1609$c3e8da3$5496439d@news.astraweb.com> <57108FAC.3020105@rece.vub.ac.be> <5710A442.8000906@rece.vub.ac.be> Xref: csiph.com comp.lang.python:107031 On Fri, Apr 15, 2016 at 6:20 PM, Antoon Pardon wrote: > But the tests, at this moment, are not written to instantiate self.tree > but to call avltree directly. So I have to rewrite these tests. That > will IMO involve a lot of cut and paste. Ah. In that case, it either involves a lot of editing (to make them call self.tree), or monkey-patching the name 'avltree'. ChrisA