Mercurial > p > roundup > code
comparison test/test_mailgw.py @ 5388:d26921b851c3
Python 3 preparation: make relative imports explicit.
Tool-generated patch.
| author | Joseph Myers <jsm@polyomino.org.uk> |
|---|---|
| date | Tue, 24 Jul 2018 22:22:08 +0000 |
| parents | 0942fe89e82e |
| children | 55f09ca366c4 |
comparison
equal
deleted
inserted
replaced
| 5387:f7432fc3db4d | 5388:d26921b851c3 |
|---|---|
| 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 11 | 11 |
| 12 # TODO: test bcc | 12 # TODO: test bcc |
| 13 | 13 |
| 14 import email | 14 import email |
| 15 import gpgmelib | 15 from . import gpgmelib |
| 16 import unittest, tempfile, os, shutil, errno, imp, sys, difflib, time | 16 import unittest, tempfile, os, shutil, errno, imp, sys, difflib, time |
| 17 | 17 |
| 18 import pytest | 18 import pytest |
| 19 | 19 |
| 20 try: | 20 try: |
| 38 from roundup.mailgw import MailGW, Unauthorized, uidFromAddress, \ | 38 from roundup.mailgw import MailGW, Unauthorized, uidFromAddress, \ |
| 39 parseContent, IgnoreLoop, IgnoreBulk, MailUsageError, MailUsageHelp | 39 parseContent, IgnoreLoop, IgnoreBulk, MailUsageError, MailUsageHelp |
| 40 from roundup import init, instance, password, __version__ | 40 from roundup import init, instance, password, __version__ |
| 41 | 41 |
| 42 #import db_test_base | 42 #import db_test_base |
| 43 import memorydb | 43 from . import memorydb |
| 44 | 44 |
| 45 def expectedFailure(method): | 45 def expectedFailure(method): |
| 46 """ For marking a failing test. | 46 """ For marking a failing test. |
| 47 This will *not* run the test and return success instead. | 47 This will *not* run the test and return success instead. |
| 48 """ | 48 """ |
