Commits

Maciej Fijalkowski committed a43e5c7

fix those

Comments (0)

Files changed (1)

pypy/interpreter/test/test_app_main.py

         p = os.path.abspath(p)
         monkeypatch.chdir(os.path.dirname(app_main))
         child = self.spawn(['-i',
-                            '-m', 'test2.mymodule',
+                            '-m', 'test.mymodule',
                             'extra'])
         child.expect('mymodule running')
         child.expect('Name: __main__')
         child.expect(re.escape(repr("foobar")))
         child.expect('>>> ')
         child.sendline('import sys')
-        child.sendline('"test2" in sys.modules')
+        child.sendline('"test" in sys.modules')
         child.expect('True')
-        child.sendline('"test2.mymodule" in sys.modules')
+        child.sendline('"test.mymodule" in sys.modules')
         child.expect('False')
         child.sendline('sys.path[0]')
         child.expect("''")
         child.expect('hello')
 
         monkeypatch.chdir(os.path.dirname(app_main))
-        child = self.spawn(['-mtest2.mymodule'])
+        child = self.spawn(['-mtest.mymodule'])
         child.expect('mymodule running')
 
     def test_ps1_only_if_interactive(self):
         p = os.path.join(os.path.realpath(os.path.dirname(__file__)), 'mymodule.py')
         p = os.path.abspath(p)
         monkeypatch.chdir(os.path.dirname(app_main))
-        data = self.run('-m test2.mymodule extra')
+        data = self.run('-m test.mymodule extra')
         assert 'mymodule running' in data
         assert 'Name: __main__' in data
         # ignoring case for windows. abspath behaves different from autopath
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.