Skip to content

Commit

Permalink
Merge pull request #34 from stackhpc/upstream/yoga-2024-07-08
Browse files Browse the repository at this point in the history
Synchronise yoga with upstream
  • Loading branch information
markgoddard authored Jul 9, 2024
2 parents 2cb0f9f + 301f841 commit 9765df3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 25 deletions.
9 changes: 0 additions & 9 deletions .zuul.d/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
- openstack-python3-yoga-jobs
check:
jobs:
- build-wheel-cache-centos-8-stream:
files:
- bindep.txt
- build-wheel-cache-ubuntu-bionic:
files:
- bindep.txt
Expand Down Expand Up @@ -52,9 +49,6 @@
files:
- bindep.txt
- upper-constraints.txt
- build-wheel-cache-centos-8-stream-arm64:
files:
- bindep.txt
- build-wheel-cache-ubuntu-bionic-arm64:
files:
- bindep.txt
Expand All @@ -63,9 +57,6 @@
- bindep.txt
gate:
jobs:
- build-wheel-cache-centos-8-stream:
files:
- bindep.txt
- build-wheel-cache-ubuntu-bionic:
files:
- bindep.txt
Expand Down
19 changes: 3 additions & 16 deletions openstack_requirements/tests/test_requirement.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

import textwrap

import pkg_resources
import pkg_resources.extern.packaging.requirements as pkg_resources_reqs
import testscenarios
import testtools

Expand Down Expand Up @@ -107,13 +105,7 @@ class TestParseRequirementFailures(testtools.TestCase):
('-f', dict(line='-f http://tarballs.openstack.org/'))]

def test_does_not_parse(self):
try:
requirement.parse_line(self.line)
except (pkg_resources.RequirementParseError,
pkg_resources_reqs.InvalidRequirement):
pass
else:
self.fail('No exception triggered')
self.assertRaises(ValueError, requirement.parse_line, self.line)


class TestToContent(testtools.TestCase):
Expand Down Expand Up @@ -153,13 +145,8 @@ def test_urls(self):
self.assertEqual(reqs, [(req, line)])

def test_not_urls(self):
try:
list(requirement.to_reqs('file:///foo#egg=foo'))
except (pkg_resources.RequirementParseError,
pkg_resources_reqs.InvalidRequirement):
pass
else:
self.fail('No exception triggered')
self.assertRaises(
ValueError, list, requirement.to_reqs('file:///foo#egg=foo'))

def test_multiline(self):
content = textwrap.dedent("""\
Expand Down

0 comments on commit 9765df3

Please sign in to comment.