Exemplo n.º 1
0
    def helper_compression_negative_level_notdefault(self):
        if zstd.ZSTD_version_number() < 10304:
            return raise_skip(
                "PyZstd was build with old version of ZSTD library (%s) without support of negative compression levels."
                % zstd.ZSTD_version())

        CDATA = zstd.compress(tDATA, -1)
        self.assertNotEqual(CDATA, zstd.compress(tDATA, 0))
Exemplo n.º 2
0
 def helper_zstd_version(self):
     if self.ZSTD_EXTERNAL:
         return raise_skip(
             "PyZstd was build with external version of ZSTD library (%s). It can be any version. Almost."
             % zstd.ZSTD_version())
     self.assertEqual(self.VERSION, zstd.ZSTD_version())
Exemplo n.º 3
0
 def helper_zstd_version(self):
     self.assertEqual(self.VERSION, zstd.ZSTD_version())
Exemplo n.º 4
0
 def helper_zstd_version_number(self):
     if zstd.ZSTD_external():
         return raise_skip(
             "PyZstd was build with external version of ZSTD library (%s). It can be any version. Almost."
             % zstd.ZSTD_version())
     self.assertEqual(self.VERSION_INT, zstd.ZSTD_version_number())