diff options
| author | msapiro | 2006-05-19 20:52:50 +0000 |
|---|---|---|
| committer | msapiro | 2006-05-19 20:52:50 +0000 |
| commit | f18340600da22b523e45c1e2d17659c2833f87ef (patch) | |
| tree | d6bb9829b84b5519a7cd9c7c6aab3496057834eb /Mailman/testing/test_bounces.py | |
| parent | 92be2b78e69ae573ea21952972345005f8d7183b (diff) | |
| download | mailman-f18340600da22b523e45c1e2d17659c2833f87ef.tar.gz mailman-f18340600da22b523e45c1e2d17659c2833f87ef.tar.zst mailman-f18340600da22b523e45c1e2d17659c2833f87ef.zip | |
Diffstat (limited to 'Mailman/testing/test_bounces.py')
| -rw-r--r-- | Mailman/testing/test_bounces.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Mailman/testing/test_bounces.py b/Mailman/testing/test_bounces.py index 8756701e2..1e967ab71 100644 --- a/Mailman/testing/test_bounces.py +++ b/Mailman/testing/test_bounces.py @@ -22,6 +22,7 @@ import sys import email import unittest +from paths import prefix from Mailman.Bouncers.BouncerAPI import Stop @@ -147,7 +148,8 @@ class BounceTest(unittest.TestCase): for modname, file, addrs in self.DATA: module = 'Mailman.Bouncers.' + modname __import__(module) - fp = open(os.path.join('tests', 'bounces', file)) + fp = open(os.path.join(prefix, 'Mailman', 'testing', 'bounces', + file)) try: msg = email.message_from_file(fp) finally: @@ -167,7 +169,8 @@ class BounceTest(unittest.TestCase): def test_SMTP32_failure(self): from Mailman.Bouncers import SMTP32 # This file has no X-Mailer: header - fp = open(os.path.join('tests', 'bounces', 'postfix_01.txt')) + fp = open(os.path.join(prefix, 'Mailman', 'testing', 'bounces', + 'postfix_01.txt')) try: msg = email.message_from_file(fp) finally: |
