Content-Length: 580279 | pFad | http://github.com/RustPython/RustPython/commit/444b69da0c7e9870352eee27fbc02806a8a8bc1d

F4 test fixes · RustPython/RustPython@444b69d · GitHub
Skip to content

Commit 444b69d

Browse files
committed
test fixes
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
1 parent 5d6a36d commit 444b69d

9 files changed

+20
-6
lines changed

Lib/test/seq_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def test_pickle(self):
424424
self.assertNotEqual(id(lst2), id(lst))
425425

426426
# TODO: RUSTPYTHON
427-
@unittest.expectedFailure
427+
@unittest.skip("TODO: RustPython hang")
428428
def test_free_after_iterating(self):
429429
support.check_free_after_iterating(self, iter, self.type2test)
430430
support.check_free_after_iterating(self, reversed, self.type2test)

Lib/test/test_deque.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,8 @@ def test_subscript(self):
920920
# For now, bypass tests that require slicing
921921
pass
922922

923+
# TODO: RUSTPYTHON
924+
@unittest.skip("TODO: RustPython hang")
923925
def test_free_after_iterating(self):
924926
# For now, bypass tests that require slicing
925927
self.skipTest("Exhausted deque iterator doesn't free a deque")

Lib/test/test_exceptions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2322,6 +2322,8 @@ def __dir__(self):
23222322
self.assertNotIn("blech", err.getvalue())
23232323
self.assertNotIn("oh no!", err.getvalue())
23242324

2325+
# TODO: RUSTPYTHON
2326+
@unittest.expectedFailure
23252327
def test_attribute_error_with_bad_name(self):
23262328
try:
23272329
raise AttributeError(name=12, obj=23)

Lib/test/test_faulthandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def test_dump_ext_modules(self):
411411
self.assertIn(name, modules)
412412

413413
# TODO: RUSTPYTHON, AttributeError: module 'faulthandler' has no attribute 'is_enabled'
414-
@unittest.skip("TODO: RUSTPYTHOn")
414+
@unittest.skip("TODO: RUSTPYTHON")
415415
def test_is_enabled(self):
416416
orig_stderr = sys.stderr
417417
try:

Lib/test/test_iter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ def test_iter_neg_setstate(self):
10311031
self.assertEqual(next(it), 1)
10321032

10331033
# TODO: RUSTPYTHON
1034-
@unittest.expectedFailure
1034+
@unittest.skip("TODO: RustPython hang")
10351035
def test_free_after_iterating(self):
10361036
check_free_after_iterating(self, iter, SequenceClass, (0,))
10371037

Lib/test/test_ordered_dict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ class A:
681681
self.assertIsNone(r())
682682

683683
# TODO: RUSTPYTHON
684-
@unittest.expectedFailure
684+
@unittest.skip("TODO: RustPython hang")
685685
def test_free_after_iterating(self):
686686
support.check_free_after_iterating(self, iter, self.OrderedDict)
687687
support.check_free_after_iterating(self, lambda d: iter(d.keys()), self.OrderedDict)

Lib/test/test_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ class C(object):
354354
self.assertTrue(ref() is None, "Cycle was not collected")
355355

356356
# TODO: RUSTPYTHON
357-
@unittest.expectedFailure
357+
@unittest.skip("TODO: RustPython hang")
358358
def test_free_after_iterating(self):
359359
support.check_free_after_iterating(self, iter, self.thetype)
360360

Lib/test/test_support.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ def test_temp_cwd__name_none(self):
311311
def test_sortdict(self):
312312
self.assertEqual(support.sortdict({3:3, 2:2, 1:1}), "{1: 1, 2: 2, 3: 3}")
313313

314+
# TODO: RUSTPYTHON
315+
@unittest.expectedFailure
314316
def test_make_bad_fd(self):
315317
fd = os_helper.make_bad_fd()
316318
with self.assertRaises(OSError) as cm:
@@ -421,6 +423,8 @@ def test_detect_api_mismatch__ignore(self):
421423
self.OtherClass, self.RefClass, ignore=ignore)
422424
self.assertEqual(set(), missing_items)
423425

426+
# TODO: RUSTPYTHON
427+
@unittest.expectedFailure
424428
def test_check__all__(self):
425429
extra = {'tempdir'}
426430
not_exported = {'template'}
@@ -547,9 +551,11 @@ def test_optim_args_from_interpreter_flags(self):
547551
with self.subTest(opts=opts):
548552
self.check_options(opts, 'optim_args_from_interpreter_flags')
549553

554+
# TODO: RustPython
550555
@unittest.skipIf(support.is_apple_mobile, "Unstable on Apple Mobile")
551556
@unittest.skipIf(support.is_emscripten, "Unstable in Emscripten")
552557
@unittest.skipIf(support.is_wasi, "Unavailable on WASI")
558+
@unittest.expectedFailure
553559
def test_fd_count(self):
554560
# We cannot test the absolute value of fd_count(): on old Linux kernel
555561
# or glibc versions, os.urandom() keeps a FD open on /dev/urandom
@@ -582,6 +588,8 @@ def test_has_strftime_extensions(self):
582588
else:
583589
self.assertTrue(support.has_strftime_extensions)
584590

591+
# TODO: RUSTPYTHON
592+
@unittest.expectedFailure
585593
def test_get_recursion_depth(self):
586594
# test support.get_recursion_depth()
587595
code = textwrap.dedent("""
@@ -625,6 +633,8 @@ def test_recursive(depth, limit):
625633
""")
626634
script_helper.assert_python_ok("-c", code)
627635

636+
# TODO: RustPython
637+
@unittest.skip("TODO: RustPython stack overflow")
628638
def test_recursion(self):
629639
# Test infinite_recursion() and get_recursion_available() functions.
630640
def recursive_function(depth):

Lib/test/test_unicode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2597,7 +2597,7 @@ def test_compare(self):
25972597
self.assertFalse(astral >= astral2)
25982598

25992599
# TODO: RUSTPYTHON
2600-
@unittest.expectedFailure
2600+
@unittest.skip("TODO: RustPython hang")
26012601
def test_free_after_iterating(self):
26022602
support.check_free_after_iterating(self, iter, str)
26032603
support.check_free_after_iterating(self, reversed, str)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/RustPython/RustPython/commit/444b69da0c7e9870352eee27fbc02806a8a8bc1d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy