diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-09-04 05:16:12 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-09-04 05:16:12 +0000 |
commit | eafe9b81dd96e9c8f59dfaf3c62d01aa25be64df (patch) | |
tree | d7e354632533eab61d423378c2fc2551a72d5c93 /rdiff-backup/testing/commontest.py | |
parent | 98a31c8656bb61659e1eea4f649d51a214ce806d (diff) | |
download | rdiff-backup-eafe9b81dd96e9c8f59dfaf3c62d01aa25be64df.tar.gz |
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
Diffstat (limited to 'rdiff-backup/testing/commontest.py')
-rw-r--r-- | rdiff-backup/testing/commontest.py | 8 |
1 files changed, 7 insertions, 1 deletions
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() |