Update test_content_loader.py
@@ -254,43 +254,3 @@ class YamlLoaderTestCase(unittest2.TestCase):
class Foo(object):
a = "1"
b = "c"
-
-
-class YamlLoaderTestCase(unittest2.TestCase):
- def test_yaml_safe_load(self):
- # Verify C version of yaml loader indeed doesn't load non-safe data
- dumped = yaml.dump(Foo)
- self.assertTrue("!!python" in dumped)
-
- # Regular full load should work, but safe wrapper should fail
- result = yaml.load(dumped, Loader=FullLoader)
- self.assertTrue(result)
-
- self.assertRaisesRegexp(
- yaml.constructor.ConstructorError,
- "could not determine a constructor",
- yaml_safe_load,
- dumped,
- )
-
- self.assertRaisesRegexp(
- yaml.constructor.ConstructorError,
- "could not determine a constructor",
- yaml.load,
- dumped,
- Loader=SafeLoader,
- )
-
- if CSafeLoader:
- self.assertRaisesRegexp(
- yaml.constructor.ConstructorError,
- "could not determine a constructor",
- yaml.load,
- dumped,
- Loader=CSafeLoader,
- )
-
-
-class Foo(object):
- a = "1"
- b = "c"
