Skip to content

bpo-1154351: Add get_current_dir_name() to os module #10117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Prev Previous commit
Next Next commit
fixup! bpo-1154351: add get_current_dir_name() to os module
  • Loading branch information
bradengroom committed Oct 26, 2018
commit f836691283624361ee12722c8ba469f7cfe86cd1
5 changes: 3 additions & 2 deletions Lib/test/test_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ def tearDownClass(cls):
class CurrentDirTests(unittest.TestCase):

def setUp(self):
self.pwd = os.environ['PWD']
self.pwd = os.environ.get('PWD')
base = os.path.abspath(support.TESTFN)
self.tmp_dir = base + '_dir'
self.tmp_lnk = base + '_lnk'
Expand Down Expand Up @@ -1291,7 +1291,8 @@ def test_get_current_dir_name(self):
os.unlink(self.tmp_lnk)

def tearDown(self):
os.environ['PWD'] = self.pwd
if self.pwd is not None:
os.environ['PWD'] = self.pwd


class RemoveDirsTests(unittest.TestCase):
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy