From: Uwe Hermann Date: Wed, 30 Jul 2014 22:44:20 +0000 (+0200) Subject: tests/pdtest: Small fix to make it work with Python 3.2. X-Git-Tag: libsigrokdecode-0.4.0~199 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=1f6f2ad8c33e58cfd40ea0370e6d2dfbd6040026 tests/pdtest: Small fix to make it work with Python 3.2. Python 3.2 doesn't yet have the copy() method for lists: AttributeError: 'list' object has no attribute 'copy' --- diff --git a/tests/pdtest b/tests/pdtest index 55718be..d0717a8 100755 --- a/tests/pdtest +++ b/tests/pdtest @@ -309,7 +309,7 @@ def run_tests(tests, fix=False): pd_cvg = [] for tclist in tests[pd]: for tc in tclist: - args = cmd.copy() + args = cmd[:] if DEBUG > 1: args.append('-d') # Set up PD stack for this test.