jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/919243 )
Change subject: [FIX] do not test sys.argv[0] ...................................................................... [FIX] do not test sys.argv[0] You cannot assume a specific path. Bug: T336591 Change-Id: Iedb9ccb94a42b824bedd8694cdf135a545248d49 --- M tests/make_dist_tests.py 1 file changed, 12 insertions(+), 3 deletions(-) Approvals: JJMC89: Looks good to me, approved jenkins-bot: Verified diff --git a/tests/make_dist_tests.py b/tests/make_dist_tests.py index 1a79759..347221e 100755 --- a/tests/make_dist_tests.py +++ b/tests/make_dist_tests.py @@ -5,7 +5,6 @@ # # Distributed under the terms of the MIT license. # -import os import sys import unittest @@ -22,8 +21,6 @@ def _test_argv(self): """Test argv.""" - if os.environ.get('PYWIKIBOT_TEST_RUNNING', '0') != '1': - self.assertEqual(__file__, sys.argv[0]) self.assertIn('sdist', sys.argv) self.assertIn('bdist_wheel', sys.argv) -- To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/919243 To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Change-Id: Iedb9ccb94a42b824bedd8694cdf135a545248d49 Gerrit-Change-Number: 919243 Gerrit-PatchSet: 3 Gerrit-Owner: JJMC89 <jjmc89.wikime...@gmail.com> Gerrit-Reviewer: JJMC89 <jjmc89.wikime...@gmail.com> Gerrit-Reviewer: jenkins-bot Gerrit-CC: RoySmith <r...@panix.com> Gerrit-MessageType: merged
_______________________________________________ Pywikibot-commits mailing list -- pywikibot-commits@lists.wikimedia.org To unsubscribe send an email to pywikibot-commits-le...@lists.wikimedia.org