File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -664,7 +664,7 @@ def test_wheel_install_fails_with_unrelated_dist_info(
664
664
package = create_basic_wheel_for_package (script , "simple" , "0.1.0" )
665
665
new_name = "unrelated-2.0.0-py2.py3-none-any.whl"
666
666
new_package = os .path .join (os .path .dirname (package ), new_name )
667
- shutil .move (str (package ), new_package )
667
+ shutil .move (os . fspath (package ), new_package )
668
668
669
669
result = script .pip (
670
670
"install" ,
Original file line number Diff line number Diff line change 1
1
import compileall
2
+ import os
2
3
import shutil
3
4
import subprocess
4
5
import sys
@@ -171,11 +172,7 @@ def clear(self) -> None:
171
172
self ._create (clear = True )
172
173
173
174
def move (self , location : Union [Path , str ]) -> None :
174
- if sys .version_info <= (3 , 8 ):
175
- src = str (self .location )
176
- else :
177
- src = self .location
178
- shutil .move (src , location )
175
+ shutil .move (os .fspath (self .location ), location )
179
176
self .location = Path (location )
180
177
self ._update_paths ()
181
178
You can’t perform that action at this time.
0 commit comments