Skip to content

Commit 34422e6

Browse files
committed
WIP
1 parent 4921957 commit 34422e6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/tests.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,9 @@ def test_wrong_fields(self):
611611
self.assertEqual(["files1"], list(wf))
612612

613613
def test_run_ask_for_missing_union(self):
614-
form = """Asking the form {'path': PathTag(val=MISSING, description='', annotation=str | pathlib.Path, name='path'), 'combined': Tag(val=MISSING, description='', annotation=int | tuple[int, int] | None, name='combined'), 'simple_tuple': Tag(val=MISSING, description='', annotation=tuple[int, int], name='simple_tuple')}"""
615-
self.maxDiff = None # TODO
614+
form = """Asking the form {'path': PathTag(val=MISSING, description='', annotation=str | pathlib._local.Path, name='path'), 'combined': Tag(val=MISSING, description='', annotation=int | tuple[int, int] | None, name='combined'), 'simple_tuple': Tag(val=MISSING, description='', annotation=tuple[int, int], name='simple_tuple')}"""
615+
if sys.version_info[:2] <= (3, 12): # NOTE remove with Python 3.12
616+
form = form.replace("pathlib._local.Path", "pathlib.Path")
616617
with self.assertOutputs(form):
617618
runm(MissingNonscalar)
618619

0 commit comments

Comments
 (0)