From 665b7bdcc3df29039f64ed7d9e49fc77842942d9 Mon Sep 17 00:00:00 2001 From: Adam Hupp Date: Fri, 15 Jan 2021 14:43:15 -0800 Subject: remove from_open_file, since its duplicative with from_descriptor and hasnt been released yet --- test/test.py | 9 --------- 1 file changed, 9 deletions(-) (limited to 'test') diff --git a/test/test.py b/test/test.py index e333641..949c77e 100755 --- a/test/test.py +++ b/test/test.py @@ -83,15 +83,6 @@ class MagicTest(unittest.TestCase): m.from_buffer(b'#!/usr/bin/env python\nprint("foo")') in ("text/x-python", "text/x-script.python")) - def test_open_file(self): - if SKIP_FROM_DESCRIPTOR: - self.skipTest("magic_descriptor is broken in this version of libmagic") - - m = magic.Magic(mime=True) - filename = os.path.join(self.TESTDATA_DIR, "test.pdf") - with open(filename) as f: - self.assertEqual("application/pdf", m.from_open_file(f)) - def test_mime_types(self): dest = os.path.join(MagicTest.TESTDATA_DIR, b'\xce\xbb'.decode('utf-8')) -- cgit v1.2.1