From 07ab0ae7731d957b6f835d8e7789ff4c0aa0302f Mon Sep 17 00:00:00 2001 From: Paul Rodger Date: Thu, 11 Apr 2002 10:23:16 +0000 Subject: Getting ready for v0.3 release. --- test_archivemail.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'test_archivemail.py') diff --git a/test_archivemail.py b/test_archivemail.py index 0015541..22ab2f2 100755 --- a/test_archivemail.py +++ b/test_archivemail.py @@ -32,6 +32,7 @@ TODO: add tests for: """ +import sys import fcntl import filecmp import os @@ -41,7 +42,15 @@ import tempfile import time import unittest -import archivemail +try: + import archivemail +except ImportError: + print "The archivemail script needs to be called 'archivemail.py'" + print "and should be in the current directory in order to be imported" + print "and tested. Sorry." + if os.path.isfile("archivemail"): + print "Try renaming it from 'archivemail' to 'archivemail.py'." + sys.exit(1) -- cgit v1.2.3