Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
e3rd committed Jan 28, 2025
1 parent 4921957 commit 34422e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,9 @@ def test_wrong_fields(self):
self.assertEqual(["files1"], list(wf))

def test_run_ask_for_missing_union(self):
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')}"""
self.maxDiff = None # TODO
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')}"""
if sys.version_info[:2] <= (3, 12): # NOTE remove with Python 3.12
form = form.replace("pathlib._local.Path", "pathlib.Path")
with self.assertOutputs(form):
runm(MissingNonscalar)

Expand Down

0 comments on commit 34422e6

Please sign in to comment.