diff --git a/compiler/tests/testutils.py b/compiler/tests/testutils.py index a22416e2..6310673e 100755 --- a/compiler/tests/testutils.py +++ b/compiler/tests/testutils.py @@ -38,7 +38,8 @@ class openram_test(unittest.TestCase): if result != 0: new_file = "/tmp/"+a.name+".gds" debug.info(0,"Copying failed file to {}".format(new_file)) - os.copy(tempgds, newfile) + import shutil + shutil.copy(tempgds, newfile) self.fail("DRC failed: {}".format(a.name))