8000 minimize diff · RustPython/RustPython@5f802d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5f802d2

Browse files
committed
minimize diff
1 parent 695e0a8 commit 5f802d2

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

Lib/test/test_ordered_dict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ class A:
649649
r = weakref.ref(A)
650650
del A
651651
gc.collect()
652-
# TODO: RustPython, Need to fix this: somehow after del A, it takes two call to `gc.collect()`
652+
# TODO: RUSTPYTHON, Need to fix this: somehow after del A, it takes two call to `gc.collect()`
653653
# for gc to realize a loop is there and to be collected
654654
self.assertIsNone(r())
655655

Lib/test/test_sys_setprofile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def trace_return(self, frame):
7272
# TODO: RUSTPYTHON
7373
# it seems pop from empty list is also related to those failed tests
7474
# if those tests(all the tests in `ProfileHookTestCase``) can pass in RustPython,
75-
# then we can remove this `if``
75+
# then we can remove this `if`
7676
# and just use `self.stack.pop()` here
7777
if len(self.stack)!=0:
7878
self.stack.pop()

Lib/test/test_weakref.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1912,12 +1912,7 @@ def test_threaded_weak_valued_setdefault(self):
19121912
def test_threaded_weak_valued_pop(self):
19131913
d = weakref.WeakValueDictionary()
19141914
with collect_in_thread():
1915-
print("")
19161915
for i in range(100000):
1917-
if i%1000==0:
1918-
print("\rLoop:"+str(i)+"/100000 ", end="")
1919-
# TODO: RUSTPYTHON: so in log file the progress can be update in time
1920-
sys.stdout.flush()
19211916
d[10] = RefCycle()
19221917
x = d.pop(10, 10)
19231918
self.assertIsNot(x, None) # we never put None in there!
@@ -1927,12 +1922,7 @@ def test_threaded_weak_valued_consistency(self):
19271922
# WeakValueDictionary when collecting from another thread.
19281923
d = weakref.WeakValueDictionary()
19291924
with collect_in_thread():
1930-
print("")
19311925
for i in range(200000):
1932-
if i%1000==0:
1933-
print("\rLoop:"+str(i)+"/200000 ", end="")
1934-
# TODO: RUSTPYTHON: so in log file the progress can be update in time
1935-
sys.stdout.flush()
19361926
o = RefCycle()
19371927
d[10] = o
19381928
# o is still alive, so the dict can't be empty

0 commit comments

Comments
 (0)
0