import warnings
from io import StringIO, TextIOWrapper
- from email.feedparser import FeedParser
+ from email.feedparser import FeedParser, BytesFeedParser
from email.message import Message
+from email._policybase import compat32
\f
from email import base64mime
from email import quoprimime
-from test.support import findfile, run_unittest, unlink
-from email.test import __file__ as landmark
+from test.support import unlink
+from test.test_email import openfile, TestEmailBase
-
+ # These imports are documented to work, but we are testing them using a
+ # different path, so we import them here just to make sure they are importable.
+ from email.parser import FeedParser, BytesFeedParser
+
NL = '\n'
EMPTYSTRING = ''
SPACE = ' '