We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2847163 commit 84d9062Copy full SHA for 84d9062
1 file changed
tests/test_torchtune.py
@@ -3,8 +3,14 @@
3
4
class TestTorchtune(unittest.TestCase):
5
def test_help(self):
6
- result = subprocess.run(["tune", "--help"], stdout=subprocess.PIPE)
+ result = subprocess.run(
7
+ ["tune", "--help"],
8
+ capture_output=True,
9
+ text=True
10
+ )
11
12
self.assertEqual(0, result.returncode)
- self.assertIsNone(result.stderr)
- self.assertIn("Download a model from the Hugging Face Hub or Kaggle Model Hub.", result.stdout.decode("utf-8"))
13
+ self.assertIn(
14
+ "Download a model from the Hugging Face Hub or Kaggle",
15
+ result.stdout
16
0 commit comments