From eafe9b81dd96e9c8f59dfaf3c62d01aa25be64df Mon Sep 17 00:00:00 2001 From: bescoto Date: Thu, 4 Sep 2003 05:16:12 +0000 Subject: Added user_group module and associated tests git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@416 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109 --- rdiff-backup/testing/commontest.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'rdiff-backup/testing/commontest.py') diff --git a/rdiff-backup/testing/commontest.py b/rdiff-backup/testing/commontest.py index b60018d..4cfac90 100644 --- a/rdiff-backup/testing/commontest.py +++ b/rdiff-backup/testing/commontest.py @@ -1,5 +1,5 @@ """commontest - Some functions and constants common to several test cases""" -import os, sys +import os, sys, code from rdiff_backup.log import Log from rdiff_backup.rpath import RPath from rdiff_backup import Globals, Hardlink, SetConnections, Main, \ @@ -363,3 +363,9 @@ def MirrorTest(source_local, dest_local, list_of_dirnames, _reset_connections(src_rp, dest_rp) assert CompareRecursive(src_rp, dest_rp, compare_hardlinks) Main.force = old_force_val + +def raise_interpreter(use_locals = None): + """Start python interpreter, with local variables if locals is true""" + if use_locals: local_dict = locals() + else: local_dict = globals() + code.InteractiveConsole(local_dict).interact() -- cgit v1.2.1