Skip to content

Commit 4c3d679

Browse files
committed
Remove module name workaround in doctests
1 parent 05d720b commit 4c3d679

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

graalpython/com.oracle.graal.python.test/src/tests/unittest_tags/test_descrtut.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
DocTestCase.test.test_descrtut.__test__.tut1
12
DocTestCase.test.test_descrtut.__test__.tut2
3+
DocTestCase.test.test_descrtut.__test__.tut4
24
DocTestCase.test.test_descrtut.__test__.tut5
35
DocTestCase.test.test_descrtut.__test__.tut6
46
DocTestCase.test.test_descrtut.__test__.tut7
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
DocTestCase.test.test_metaclass.__test__.doctests
12
test.test_metaclass.TestMain.test_main
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
DocTestCase.test.test_unpack.__test__.doctests
12
test.test_unpack.TestCornerCases.test_extended_oparg_not_ignored
23
test.test_unpack.TestMain.test_main

graalpython/lib-python/3/test/test_descrtut.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def merge(self, other):
100100
>>> print(sortdict(a.__dict__))
101101
{'default': -1000, 'x1': 100, 'x2': 200}
102102
>>>
103-
""".replace("test.test_descrtut", "graalpython.lib-python.3.test.test_descrtut") # GraalPy: an artifact of how we run tests
103+
"""
104104

105105
class defaultdict2(dict):
106106
__slots__ = ['default']
@@ -303,7 +303,7 @@ class passed as the first argument of foo() is the class involved in the
303303
specifies the class C. But it stresses the difference between these class
304304
methods and methods defined in metaclasses (where an upcall to a metamethod
305305
would pass the target class as an explicit first argument).
306-
""".replace("test.test_descrtut", "graalpython.lib-python.3.test.test_descrtut") # GraalPy: an artifact of how we run tests
306+
"""
307307

308308
test_5 = """
309309

graalpython/lib-python/3/test/test_metaclass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250
[...]
251251
test.test_metaclass.ObscureException
252252
253-
""".replace('test.test_metaclass', 'graalpython.lib-python.3.test.test_metaclass') # GraalPy change: difference in how we run the tests
253+
"""
254254

255255
import sys
256256

graalpython/lib-python/3/test/test_unpack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
...
143143
ValueError: too many values to unpack (expected 0)
144144
145-
""".replace('test.test_unpack', 'graalpython.lib-python.3.test.test_unpack') # GraalPy change: difference due to how we run tests
145+
"""
146146

147147
__test__ = {'doctests' : doctests}
148148

0 commit comments

Comments
 (0)