mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
unskip tests
This commit is contained in:
3 files changed
+1
-14
No files matched your search
@@ -283,8 +283,6 @@ class AbstractMemoryTests:
|
||||
self.assertNotEqual(m, memoryview(tp(self._source)))
|
||||
self.assertNotEqual(m, tp(self._source))
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_contextmanager(self):
|
||||
for tp in self._types:
|
||||
b = tp(self._source)
|
||||
|
||||
@@ -228,8 +228,6 @@ class UncompressedZipImportTestCase(ImportHooksBaseTestCase):
|
||||
files = {TESTMOD + ".py": (NOW, "")}
|
||||
self.doTest(None, files, TESTMOD)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def testBadMagic(self):
|
||||
# make pyc magic word invalid, forcing loading from .py
|
||||
badmagic_pyc = bytearray(test_pyc)
|
||||
@@ -238,8 +236,6 @@ class UncompressedZipImportTestCase(ImportHooksBaseTestCase):
|
||||
TESTMOD + pyc_ext: (NOW, badmagic_pyc)}
|
||||
self.doTest(".py", files, TESTMOD)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def testBadMagic2(self):
|
||||
# make pyc magic word invalid, causing an ImportError
|
||||
badmagic_pyc = bytearray(test_pyc)
|
||||
@@ -252,8 +248,6 @@ class UncompressedZipImportTestCase(ImportHooksBaseTestCase):
|
||||
else:
|
||||
self.fail("expected ImportError; import from bad pyc")
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def testBadMTime(self):
|
||||
badtime_pyc = bytearray(test_pyc)
|
||||
# flip the second bit -- not the first as that one isn't stored in the
|
||||
|
||||
@@ -31,8 +31,6 @@ class VersionTestCase(unittest.TestCase):
|
||||
|
||||
|
||||
class ChecksumTestCase(unittest.TestCase):
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
# checksum test cases
|
||||
def test_crc32start(self):
|
||||
self.assertEqual(zlib.crc32(b""), zlib.crc32(b"", 0))
|
||||
@@ -43,8 +41,6 @@ class ChecksumTestCase(unittest.TestCase):
|
||||
self.assertEqual(zlib.crc32(b"", 1), 1)
|
||||
self.assertEqual(zlib.crc32(b"", 432), 432)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_adler32start(self):
|
||||
self.assertEqual(zlib.adler32(b""), zlib.adler32(b"", 1))
|
||||
self.assertTrue(zlib.adler32(b"abc", 0xffffffff))
|
||||
@@ -284,8 +280,6 @@ class CompressObjectTestCase(BaseCompressTestCase, unittest.TestCase):
|
||||
y = do.decompress(x, max_length=len(HAMLET_SCENE)) + do.flush()
|
||||
self.assertEqual(HAMLET_SCENE, y)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_compressoptions(self):
|
||||
# specify lots of options to compressobj()
|
||||
level = 2
|
||||
@@ -491,6 +485,7 @@ class CompressObjectTestCase(BaseCompressTestCase, unittest.TestCase):
|
||||
"mode=%i, level=%i") % (sync, level))
|
||||
del obj
|
||||
|
||||
@unittest.skip("TODO: RUSTPYTHON, panics")
|
||||
@unittest.skipUnless(hasattr(zlib, 'Z_SYNC_FLUSH'),
|
||||
'requires zlib.Z_SYNC_FLUSH')
|
||||
def test_odd_flush(self):
|
||||
|
||||
Reference in new issue
Block a user