Philip Jenvey avatar Philip Jenvey committed 31b4552

move this too

Comments (0)

Files changed (5)

pypy/interpreter/test/mypackage/__init__.py

+import sys
+print("__init__ argv:", sys.argv)

pypy/interpreter/test/mypackage/__main__.py

+import sys
+print("__main__ argv:", sys.argv)

pypy/interpreter/test/test_app_main.py

                          'mypackage', '__main__.py')
         p = os.path.abspath(p)
         monkeypatch.chdir(os.path.dirname(app_main))
-        data = self.run('-m test2.mypackage extra')
+        data = self.run('-m test.mypackage extra')
         assert "__init__ argv: ['-m', 'extra']" in data
         assert "__main__ argv: [%r, 'extra']" % p in data
 

pypy/interpreter/test2/mypackage/__init__.py

-import sys
-print("__init__ argv:", sys.argv)

pypy/interpreter/test2/mypackage/__main__.py

-import sys
-print("__main__ argv:", sys.argv)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.