summaryrefslogtreecommitdiff
path: root/test/test.py
diff options
context:
space:
mode:
authorAdam Hupp <adam@hupp.org>2017-09-14 20:36:35 -0700
committerAdam Hupp <adam@hupp.org>2017-09-14 20:36:35 -0700
commitcf029d7cb3786754d35194fbbdc870e8f54711cd (patch)
tree4e678ff1f00bde064f237fbf7bfc8c8567f9fb2e /test/test.py
parent805c75c7c88db6846ae3ca0f2b8efed33fb7f572 (diff)
downloadpython-magic-cf029d7cb3786754d35194fbbdc870e8f54711cd.tar.gz
rename magic.pyc to avoid cleaning during build step
Diffstat (limited to 'test/test.py')
-rwxr-xr-xtest/test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.py b/test/test.py
index ed3f46b..59298a1 100755
--- a/test/test.py
+++ b/test/test.py
@@ -37,7 +37,7 @@ class MagicTest(unittest.TestCase):
try:
m = magic.Magic(mime=True)
self.assert_values(m, {
- 'magic.pyc': 'application/octet-stream',
+ 'magic._pyc_': 'application/octet-stream',
'test.pdf': 'application/pdf',
'test.gz': 'application/gzip',
'text.txt': 'text/plain',
@@ -52,7 +52,7 @@ class MagicTest(unittest.TestCase):
os.environ['TZ'] = 'UTC' # To get the last modified date of test.gz in UTC
try:
self.assert_values(m, {
- 'magic.pyc': 'python 2.4 byte-compiled',
+ 'magic._pyc_': 'python 2.4 byte-compiled',
'test.pdf': 'PDF document, version 1.2',
'test.gz':
('gzip compressed data, was "test", from Unix, last modified: Sun Jun 29 01:32:52 2008',