Skip to content

Commit 3b838fb

Browse files
committed
fix regex pattern in test_cuda_compute_capabilities
1 parent cd4ccb6 commit 3b838fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4673,7 +4673,7 @@ def test_cuda_compute_capabilities(self):
46734673
args = ['--cuda-compute-capabilities=3.5,6.2,7.0', '--show-config']
46744674
txt, _ = self._run_mock_eb(args, do_build=True, raise_error=True, testing=False, strip=True)
46754675

4676-
regex = re.compile(r"^cuda-compute-capabilities \(C\) = 3\.5, 6\.2, 7\.0$", re.M)
4676+
regex = re.compile(r"^cuda-compute-capabilities\s*\(C\)\s*=\s*3\.5, 6\.2, 7\.0$", re.M)
46774677
self.assertTrue(regex.search(txt), "Pattern '%s' not found in: %s" % (regex.pattern, txt))
46784678

46794679

0 commit comments

Comments
 (0)