Пример #1
0
 def test_on_compressed_load_format(self):
     with test_utils.CompressedLoadFormatContext():
         for handle in self.handles:
             self.assertFalse(
                 self.uncompressed_resolver.is_supported(handle))
Пример #2
0
 def test_load_format_compressed(self):
     with test_utils.CompressedLoadFormatContext():
         self._assert_compressed_resolver_called()
Пример #3
0
 def test_load_format_compressed(self):
     # The compressed resolver should be called in both cases
     with test_utils.CompressedLoadFormatContext():
         self._assert_compressed_resolver_called()
         with test_utils.RunningOnColabContext():
             self._assert_compressed_resolver_called()