Content-Length: 550978 | pFad | http://github.com/RustPython/RustPython/pull/5517/commits/8a50e44974e81cd29a41314407fcdf97bb90f6c9

99 Test infrastructure upgrade to 3.13.2 by arihant2math · Pull Request #5517 · RustPython/RustPython · GitHub
Skip to content

Test infrastructure upgrade to 3.13.2 #5517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test fixes
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
  • Loading branch information
arihant2math committed Feb 17, 2025
commit 8a50e44974e81cd29a41314407fcdf97bb90f6c9
2 changes: 1 addition & 1 deletion Lib/test/seq_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def test_pickle(self):
self.assertNotEqual(id(lst2), id(lst))

# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.skip("TODO: RustPython hang")
def test_free_after_iterating(self):
support.check_free_after_iterating(self, iter, self.type2test)
support.check_free_after_iterating(self, reversed, self.type2test)
2 changes: 2 additions & 0 deletions Lib/test/test_deque.py
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,8 @@ def test_subscript(self):
# For now, bypass tests that require slicing
pass

# TODO: RUSTPYTHON
@unittest.skip("TODO: RustPython hang")
def test_free_after_iterating(self):
# For now, bypass tests that require slicing
self.skipTest("Exhausted deque iterator doesn't free a deque")
Expand Down
2 changes: 2 additions & 0 deletions Lib/test/test_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2322,6 +2322,8 @@ def __dir__(self):
self.assertNotIn("blech", err.getvalue())
self.assertNotIn("oh no!", err.getvalue())

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_attribute_error_with_bad_name(self):
try:
raise AttributeError(name=12, obj=23)
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_faulthandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def test_dump_ext_modules(self):
self.assertIn(name, modules)

# TODO: RUSTPYTHON, AttributeError: module 'faulthandler' has no attribute 'is_enabled'
@unittest.skip("TODO: RUSTPYTHOn")
@unittest.skip("TODO: RUSTPYTHON")
def test_is_enabled(self):
orig_stderr = sys.stderr
try:
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_iter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ def test_iter_neg_setstate(self):
self.assertEqual(next(it), 1)

# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.skip("TODO: RustPython hang")
def test_free_after_iterating(self):
check_free_after_iterating(self, iter, SequenceClass, (0,))

Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_ordered_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ class A:
self.assertIsNone(r())

# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.skip("TODO: RustPython hang")
def test_free_after_iterating(self):
support.check_free_after_iterating(self, iter, self.OrderedDict)
support.check_free_after_iterating(self, lambda d: iter(d.keys()), self.OrderedDict)
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ class C(object):
self.assertTrue(ref() is None, "Cycle was not collected")

# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.skip("TODO: RustPython hang")
def test_free_after_iterating(self):
support.check_free_after_iterating(self, iter, self.thetype)

Expand Down
10 changes: 10 additions & 0 deletions Lib/test/test_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@ def test_temp_cwd__name_none(self):
def test_sortdict(self):
self.assertEqual(support.sortdict({3:3, 2:2, 1:1}), "{1: 1, 2: 2, 3: 3}")

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_make_bad_fd(self):
fd = os_helper.make_bad_fd()
with self.assertRaises(OSError) as cm:
Expand Down Expand Up @@ -421,6 +423,8 @@ def test_detect_api_mismatch__ignore(self):
self.OtherClass, self.RefClass, ignore=ignore)
self.assertEqual(set(), missing_items)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_check__all__(self):
extra = {'tempdir'}
not_exported = {'template'}
Expand Down Expand Up @@ -547,9 +551,11 @@ def test_optim_args_from_interpreter_flags(self):
with self.subTest(opts=opts):
self.check_options(opts, 'optim_args_from_interpreter_flags')

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

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_get_recursion_depth(self):
# test support.get_recursion_depth()
code = textwrap.dedent("""
Expand Down Expand Up @@ -625,6 +633,8 @@ def test_recursive(depth, limit):
""")
script_helper.assert_python_ok("-c", code)

# TODO: RustPython
@unittest.skip("TODO: RustPython stack overflow")
def test_recursion(self):
# Test infinite_recursion() and get_recursion_available() functions.
def recursive_function(depth):
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_unicode.py
Original file line number Diff line number Diff line change
Expand Up @@ -2597,7 +2597,7 @@ def test_compare(self):
self.assertFalse(astral >= astral2)

# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.skip("TODO: RustPython hang")
def test_free_after_iterating(self):
support.check_free_after_iterating(self, iter, str)
support.check_free_after_iterating(self, reversed, str)
Expand Down
Loading








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/pull/5517/commits/8a50e44974e81cd29a41314407fcdf97bb90f6c9

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy