jenkins-bot submitted this change.

View Change


Approvals: JJMC89: Looks good to me, approved jenkins-bot: Verified
[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(-)

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 change 919243. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Iedb9ccb94a42b824bedd8694cdf135a545248d49
Gerrit-Change-Number: 919243
Gerrit-PatchSet: 3
Gerrit-Owner: JJMC89 <JJMC89.Wikimedia@gmail.com>
Gerrit-Reviewer: JJMC89 <JJMC89.Wikimedia@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-CC: RoySmith <roy@panix.com>
Gerrit-MessageType: merged