summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorAdam Hupp <adam@hupp.org>2010-11-21 23:02:34 -0800
committerAdam Hupp <adam@hupp.org>2010-11-21 23:02:34 -0800
commitf082313f250b9b8b1d393ad0740aef09afd86244 (patch)
tree7166e2cad7551037d1c4e9f97734da40007eab40 /test.py
parent4bdd270b248156e81eb5056a17751526e7ba0161 (diff)
downloadpython-magic-f082313f250b9b8b1d393ad0740aef09afd86244.tar.gz
Fix unit test
- remove charset from textfile mimetype that is now gone (libmagic version change? environment change? sunspots?) - Don't run filetype tests when testing charsets
Diffstat (limited to 'test.py')
-rw-r--r--test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.py b/test.py
index f353124..d822f68 100644
--- a/test.py
+++ b/test.py
@@ -11,7 +11,7 @@ testfile = [
("test.pdf", "PDF document, version 1.2", "application/pdf"),
("test.gz", 'gzip compressed data, was "test", from Unix, last modified: '
'Sat Jun 28 18:32:52 2008', "application/x-gzip"),
- ("text.txt", "ASCII text", "text/plain; charset=us-ascii"),
+ ("text.txt", "ASCII text", "text/plain"),
]
testFileEncoding = [('text-iso8859-1.txt', 'iso-8859-1')]
@@ -47,7 +47,7 @@ class TestMagic(unittest.TestCase):
class TestMagicMime(TestMagic):
mime = True
-class TestMagicMimeEncoding(TestMagic):
+class TestMagicMimeEncoding(unittest.TestCase):
def setUp(self):
self.m = Magic(mime_encoding=True)